mustafadurmaz / react-router-example

Created with CodeSandbox

Home Page:https://codesandbox.io/s/github/mustafadurmaz/react-router-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions:

1- Setup react-router-dom correctley in the App.js 2- Import the components from the components folder, for the admin only bring Dashboard. 3- Define the route for all the components Accordingly: A- /products should render Products, and the id param should render the ProductDetail B- /dashboard should render admin Dashboard C- /notfound should render the 404 components. D- / should render the Home components. E- Any other route should go to the NotFound compoenent we have :) F- The user should get redirected to the Home after 5 seconds in the 404 component.