this question on stackoverflow.
Repo to support an answer forA good explanation of the code can be found in the answer.
Setup
It's a create-react-app, so for more details check that out.
To run it, do this steps:
npm install
npm run start
The app will run on port 3000
.