UNPKG

984 B Markdown View Raw
1---
2title: Installation
3order: 1
4---
5
6# Installation
7
8[MODES: framework]
9
10## Introduction
11
12Most projects start with a template. Let's use a basic template maintained by React Router:
13
14```shellscript nonumber
15npx create-react-router@latest my-react-router-app
16```
17
18Now change into the new directory and start the app
19
20```shellscript nonumber
21cd my-react-router-app
22npm i
23npm run dev
24```
25
26You can now open your browser to `http://localhost:5173`
27
28You can [view the template on GitHub][default-template] to see how to manually set up your project.
29
30We also have a number of [ready to deploy templates][react-router-templates] available for you to get started with:
31
32```shellscript nonumber
33npx create-react-router@latest --template remix-run/react-router-templates/<template-name>
34```
35
36---
37
38Next: [Routing](./routing)
39
40[default-template]: https://github.com/remix-run/react-router-templates/tree/main/default
41[react-router-templates]: https://github.com/remix-run/react-router-templates
42
\No newline at end of file