Skip to content

cyberuni/react-hmr-issue

Repository files navigation

React HMR issue

When HMR occurs, the onChange event is not triggered.

pnpm i
pnpm dev

Observe hello is printed from the state. Change the code to trigger HMR.

You will see the input is working, but the state update didn't occur. That's because the onChange event is not triggered.

This occurs to both React 16 and 18

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published