Doc's Demo that includes const theme = use(ThemeContext) is broken #27678
Labels
Resolution: Stale
Automatically closed due to inactivity
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
On your docs page, https://react.dev/reference/react/use#usage the first demo that includes useContext is broken. It does not work on the page itself, and it does not work when you run it with the associated codesandbox.
I tried it on both firefox and chrome on a mac.
It do see this error, though not sure it is related.
uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
The text was updated successfully, but these errors were encountered: