react.dev
react.dev copied to clipboard
[Typo]: createPortal documentation is pointing to an old page of W3C dialog modal docs.
Summary
createPortal documentation redirect us to the wrong W3C guideline page (old page).
Page
https://react.dev/reference/react-dom/createPortal#usage
Details
The createPortal documentation (Pitfall section) has a link that points to the W3C guidelines page on how to make modals accessible. Although, this link is an old one so this is not currently redirecting to the expected one. The new link is https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/.