Skip to content

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages