This is a simple example project demonstrating how to use React Router DOM for navigation in a React application.
Follow these steps to get the project up and running on your local machine.
Make sure you have Node.js and npm (Node Package Manager) installed on your system.
git clone https://github.com/Saurav-Pant/React-Router-DOM.git
Navigate to the project directory and install the required dependencies using npm:
cd React-Router-DOM
npm install
To start the development server and run the application locally, use the following command:
npm run dev
This will launch the development server, and you can view the app in your web browser at http://localhost:5173
.
This example project includes navigation between different pages (Home, About, Contact, Blog) using React Router DOM. You can explore the code to see how routing is implemented.
Feel free to modify and customize the project to suit your needs.