Skip to content

Saurav-Pant/React-Router-DOM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Router DOM Example

This is a simple example project demonstrating how to use React Router DOM for navigation in a React application.

Getting Started

Follow these steps to get the project up and running on your local machine.

Prerequisites

Make sure you have Node.js and npm (Node Package Manager) installed on your system.

Clone the Repository

git clone https://github.com/Saurav-Pant/React-Router-DOM.git

Install Dependencies

Navigate to the project directory and install the required dependencies using npm:

cd React-Router-DOM
npm install

Run the Development Server

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.

Usage

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.