Show React modal on page load

How would I show a modal automatically on page load? We have a react modal component that supports closing the modal, how would this behaviour work together with Plasmic?

If there is a prop you can pass into the modal components to tell it to start in a default opened state, then that should do it. Then you can simply insert that modal into your page and when the page opens it should be opened.

It may be annoying for that modal to always start off opened for plasmic editors though, so you may want to wrap that modal component in another component that checks whether the plasmic canvas context is set, and if so it does not show the modal by default.

Let me know if that makes sense

Awesome, thank you! Will play around with that today