Jakebluhm / OMO

0 stars 0 forks source link

Select database and implement simple read/write functions #3

Closed Jakebluhm closed 1 year ago

Jakebluhm commented 2 years ago

Read and write should be done in useEffect() becuase they are side effects (basically a async callback for when a state variable chage)

First few sections of this article explain this clearly: https://dmitripavlutin.com/react-useeffect-explanation/