Skip to content

Commit b099df0

Browse files
Add create-react-router to framework docs (#12239)
1 parent bc6386e commit b099df0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/framework/start/installation.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,22 @@ To use React Router minimally with your own bundling, server rendering, etc. ref
1313

1414
## Starter Template
1515

16-
Most projects start with a template. Let's use a basic template maintained by React Router with `degit`:
16+
Most projects start with a template. Let's use a basic template maintained by React Router:
1717

1818
```shellscript nonumber
19-
npx degit remix-run/react-router/templates/basic#dev my-app
19+
npm create react-router@pre <projectDir>
20+
# or
21+
pnpm create react-router@pre <projectDir>
22+
# or
23+
bunx create-react-router@pre <projectDir>
24+
# or
25+
yarn create react-router@pre <projectDir>
2026
```
2127

2228
Now change into the new directory and start the app
2329

2430
```shellscript nonumber
25-
cd my-app
31+
cd my-react-router-app
2632
npm i
2733
npm run dev
2834
```

0 commit comments

Comments
 (0)