Route function removes all displayed items in react.js

Solution 1:

Found the answer to my question. I needed to run this in the terminal:

npm install [email protected]

I already had react-router-dom installed, just not the most recent revision.

Thanks for all the help that anyone has given. I really appreciate it