I previously built a d3 geography game in plain Javascript, and now I am trying to translate it to React. This has been difficult, because of how things in useState() and useEff