sepiropht / tic-tac-toe-wasm

rust wasm tic-tac-toe
https://sepiropht.github.io/tic-tac-toe-wasm/
Apache License 2.0
16 stars 0 forks source link

Reset button does not working #1

Closed sepiropht closed 5 years ago

sepiropht commented 5 years ago

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.