React-router-app is a sample project inspired by the React Router Address Book Tutorial. This application demonstrates the core features of client-side routing in React, including form handling, navigation links, and asynchronous data loading.
- Client-side routing with React Router
- Asynchronous data loading (contacts, contact details)
- Nested routes
- Form handling for creating and editing contacts
- Navigation through links
-
Clone the repository:
git clone <repository-url> cd react-router-app
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
This starts your app in development mode, rebuilding assets on file changes.
First, build your app for production:
npm run buildThen run the app in production mode:
npm startNow you'll need to pick a host to deploy it to.
If you're familiar with deploying node applications, the built-in React Router app server is production-ready.
Make sure to deploy the output of react-router build
build/serverbuild/client
This application is intended for learning and demonstrating modern approaches to routing in React.