Manage Data in a React App Using State and Effects