You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the "Strict Mode" page, there are two sample code blocks in the "Fixing bugs found by double rendering in development" section which are supposed to change the background color on hover, but they don't actually change how anything is displayed. (Tested in Chrome, Opera, and Safari on Windows and Mac.)
Summary
On the "Strict Mode" page, there are two sample code blocks in the "Fixing bugs found by double rendering in development" section which are supposed to change the background color on hover, but they don't actually change how anything is displayed. (Tested in Chrome, Opera, and Safari on Windows and Mac.)
Page
https://react.dev/reference/react/StrictMode#fixing-bugs-found-by-double-rendering-in-development
Details
On the "Strict Mode" page, there are two code blocks in the "Fixing bugs found by double rendering in development" section with this code:
However, this code does nothing because the
ul
element'sdisplay
styling means that changing thebackground-color
styling doesn't change anything.This could be fixed by adding a line like this:
However, that just looks bad.
Not sure what a better fix would be, but some fix is needed for that sample code.
The text was updated successfully, but these errors were encountered: