When HMR occurs, the onChange event is not triggered.
pnpm i
pnpm devObserve 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