This refactors accountMap to use a reducer instead of just merging the object and setting state. This will allow some performance upgrades in the future when I incorporate memo/context on the home page.
It also adds tests (yay!) for the reducer and moves the test folder into src so that yarn test will run all the tests.
This refactors accountMap to use a reducer instead of just merging the object and setting state. This will allow some performance upgrades in the future when I incorporate memo/context on the home page.
It also adds tests (yay!) for the reducer and moves the test folder into
src
so thatyarn test
will run all the tests.