Skip to content
Discussion options

You must be logged in to vote

Now that <dialog> is widely supported across browsers (not the case when we first built React Aria), it's a common question why you might still use a JS library like React Aria. I'll try to document some of the reasons here.

Top layer

One of the main reasons that you might want to avoid <dialog> is actually also one of its main features: the top-layer. Native dialogs render in a special layer on top of all other content, regardless of the z-index. This is a benefit if your whole app and all of its dependencies are built with this in mind, but that's often not the case.

For example, you might use a third-party dependency for certain overlays, like embedded support chat widgets, onboarding …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by davidalvarezr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants