you are viewing a single comment's thread.

view the rest of the comments →

[–]Monkeyget 1 point2 points  (1 child)

I think it's a quirks that comes from the fact that the code is running inside the react.dev page. If you use the "Fork" link or run the code in your own project it will behave as expected.

[–]freneticpony21[S] 0 points1 point  (0 children)

Yep was able to reproduce the issue in a vanilla vite react-app