Basic Routing with React Router speak khmer

This is example of Basic Routing with React Router. React routing dom is one of the import feature to build simple webpages and navigate the website.

React Routing Features

  • Use BrowserRouter, Routes, and Route for navigation.
  • Create multiple pages in your React app.
  • Switch between pages using links.
  • Set up paths for smooth navigation.
  • Perfect for building websites with simple navigation!

  • Example in the video show how to setup in single file (App.jsx) with simple functions and mulple files (like Home.jsx, About.jsx,...) then import to App.jsx.

    Example of Video


    More ReactJS playlist 1.Getting start with ReactJS + Vite (Video Tutorial)
    2.Understand Functional/Class Component & Props
    3.Basic Events Handling in ReactJS plus Form Event
    4.React State Management: Functional vs. Class Components and Handling Multiple States
    Basic Routing with React Router

    React State Management: Functional vs. Class Components and Handling Multiple States :Back 👈 👉 Next:What is Fragment in React JS
    Previous Post Next Post