Introducing Routing to a React Web App

A Noob Meets Web Apps, Episode 5

$ npm install --save react-router-dom
$ npm install --save-dev @types/react-router-dom

Make first route

Note that ‘en’ language is respected

Don’t forget who I am

Routing to poll detail

Drill down from polls to poll

Note that poll path is generated using props.match, the match generated by I18n route. This is because we need to form an URL with `/:language/poll/:id` pattern, not`/:language/highlighted/poll/:id`

Preserving Poll object



Call me Muccy. I’m a Senior iOS Developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store