david-fisher / 320-F20-Track-IV

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Use History package with React-Router to save state across pages #48

Open Towito opened 4 years ago

Towito commented 4 years ago

There's a history package that can track changes made to objects in react. We need this because we're allowing scenario editors to go back and forth between parts of the scenario when they're either creating or editing a scenario. Currently we use react-router links to go back and forth between pages in the Nav component. Thankfully, we already have the history package in our project because it is a dependency for react-router. This link here should get us started