Skip to content

Commit bc5e574

Browse files
Adopt React Router as a framework
1 parent 82f1ba4 commit bc5e574

15 files changed

Lines changed: 1562 additions & 53 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
.react-router/

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,18 @@ npm install
4141
```bash
4242
npm run dev
4343
```
44+
45+
46+
## Type Safety
47+
48+
React Router will generate types for each route to provide type safety for the route module exports.
49+
50+
To generate types for routes, run the following command:
51+
52+
```bash
53+
npm run typecheck
54+
```
55+
56+
This will add types to the `./react-router/types` folder.
57+
58+
[Read more](https://reactrouter.com/explanation/type-safety) on type safety with React Router.

index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)