/React-Router-Begining

Very First React

Primary LanguageJavaScript

React-Router-Begining

Very First React Project for Learning

/*

  1. Install react-router: npm i react-router-dom
  2. Create a router using a createBrowserRouter
  3. Add RouterProvide and pass router props
  4. Create Some route inside the router

*/

/* Things you need to create a route

  1. Create a Link: so that you can go to this route.
  2. Create a Component: to add what you will show once you go to that route.
  3. Add a route so that react-router knows the component it needs to display while you are visiting to that route. */