Follow this tutorial.

React router SPA demo

I have built a slightly modified version of this and placed the source code on GitHub. I have also deployed this to Firebase for you to try out.