statechannels / SCBridge-Wallet

MIT License
1 stars 2 forks source link

use fns in useState #119

Closed geoknee closed 11 months ago

geoknee commented 11 months ago

Closes #116

https://react.dev/reference/react/useState#avoiding-recreating-the-initial-state Apparently we should be using a pure constructor function 🤷