I’ve been using some regular html dialogs in a react app, and I think that does work as long as you don’t need to re-render anything while it’s open (eg I have an instructions dialog with static content that you can open and close). But if the content changes re-renders break that approach I think, at least for modal dialogs, which is what I want. Thanks for teaching me the right way to do it.
I wish I knew this sooner! Great content :)
React Dialogs that use the Dialog HTML Element, so clearly explained. Thanks, Chris. {2024-03-20} - Subscribed! , {2024-03-22}
Always a huge help Chris, cheers
Very helpful. Looking forward to the Astro course. Could you do a video on Astro 4.0 sharing your thoughts?
Great videos! Thanks for making this! btw does this dialogue element is more superior than react portal?
Thank for shaing! I will try this.
Will try this out Chris!
Cool explanation!) Thank you) But you forgot to explain how useImperativeHandle relates to the dialog)
Absolute hero!
Yeah, that was great video
Thank for react video 🎉
That was great video
Omg ty so much!
Thank you very much
excellent
Thank you!!!!!!!!!!!!!!!!!!!!!
Thx!
Why would you need access to the dialog DOM element ref? Isn't just better to have the ref defined directly in the Dialog component and use a prop to open/close the dialog for all the components that want to use the Dialog component in their return value? I think that having direct access to the ref in the parent component is kind of useless.
@lvekua