Photo by Benjamin Punzalan on Unsplash

Dynamic routing with validation in React using react-router

In the past few weeks, I’ve been working on an online shopping mall app in React and that brought some interesting challenges, the first one was, of course, how do you reuse the StorePage component over and over again. The flow I was trying to achieve was the following:

HomePage (/home)- render a list of stores that exist in a given city 
StorePage…

--

--

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
Uros Randelovic

Uros Randelovic

Making data science & computer science accessible