Since migration to react hooks the code for the ui is much simpler but now the reset button is broken. It does not restart the game.
There should be one way to force the effect hooks to re-run as he does when isWasm change or width change, when user call the reset handler.
Since migration to react hooks the code for the ui is much simpler but now the reset button is broken. It does not restart the game. There should be one way to force the effect hooks to re-run as he does when
isWasm
change orwidth
change, when user call thereset
handler.