Skip to content

pratham-srivastava-07/VanLife

Repository files navigation

VanLife App

Live link -> https://van-life07.netlify.app/

VanLife App is a React application that showcases various methods of routing commonly used in React projects. Whether you're new to React or looking to explore different routing techniques, this app provides examples and explanations to help you understand and implement routing effectively.

Table of Contents

Getting Started

To get started with the VanLife App, follow these instructions:

  1. Clone the repository: git clone https://github.com/your-username/vanlife-app.git
  2. Navigate to the project directory: cd vanlife-app
  3. Install dependencies: npm install

Project Structure

The project structure is organized as follows:

|-- src/ | |-- components/ | |-- pages/ | |-- App.js | |-- index.js |-- public/ |-- package.json |-- README.md

  • src/components: Contains reusable React components.
  • src/pages: Houses the main pages of the application.
  • App.js: The main React component.
  • index.js: Entry point of the application.
  • public: Static assets and HTML template.

Routing Methods

Method 1: React Router DOM

This method uses the popular react-router-dom library to handle routing.

Installation

Ensure you have Node.js and npm installed on your machine. Then, run:

``bash npm install or npm i npm i vite and then npm run dev

Contributing Contributions are welcome!

##Screenshots

image

image

image

About

An application built on React to get a hold of react-router-dom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published