If you have experience working with React, then you’re familiar with the idea of storing data in state . Each component can have its own state, but ideally, the top level component will contain the…