-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: adjusted READMEs for the api docs generator
- Loading branch information
1 parent
6c13442
commit c8fd138
Showing
12 changed files
with
39 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,28 @@ | ||
# Welcome to React Router · [![npm package][npm-badge]][npm] [![build][build-badge]][build] | ||
[![npm package][npm-badge]][npm] [![build][build-badge]][build] | ||
|
||
[npm-badge]: https://img.shields.io/npm/v/react-router-dom.svg?style=flat-square | ||
[npm]: https://www.npmjs.org/package/react-router-dom | ||
[build-badge]: https://img.shields.io/github/actions/workflow/status/remix-run/react-router/test.yml?branch=dev&style=square | ||
[build]: https://github.com/remix-run/react-router/actions/workflows/test.yml | ||
|
||
React Router is a lightweight, fully-featured routing library for the [React](https://reactjs.org) JavaScript library. React Router runs anywhere React runs; on the web, on the server with node.js, or on any other Javascript platform that supports the [Web Fetch API][fetch-api]. | ||
React Router is a multi-strategy router for React bridging the gap from React 18 to React 19. You can use it maximally as a React framework or minimally as a library with your own architecture. | ||
|
||
If you're new to React Router, we recommend you start with [the tutorial](https://reactrouter.com/en/main/start/tutorial). | ||
|
||
If you're migrating to v6 from v5 (or v4, which is the same as v5), check out [the migration guide](/docs/upgrading/v5.md). If you're migrating from Reach Router, check out [the migration guide for Reach Router](/docs/upgrading/reach.md). If you need to find the code for v5, [it is on the `v5` branch](https://github.com/remix-run/react-router/tree/v5). | ||
|
||
Documentation for v6 can be found [on our website](https://reactrouter.com/). | ||
|
||
## Contributing | ||
|
||
There are many different ways to contribute to React Router's development. If you're interested, check out [our contributing guidelines](CONTRIBUTING.md) to learn how you can get involved. | ||
- [Getting Started - Framework](https://reactrouter.com/start/framework/installation) | ||
- [Getting Started - Library](https://react.router.com/start/library/installation) | ||
- [Upgrade from v6](https://reactrouter.com/upgrading/v6) | ||
- [Upgrade from Remix](https://reactrouter.com/upgrading/remix) | ||
- [Changelog](https://github.com/remix-run/react-router/blob/main/CHANGELOG.md) | ||
|
||
## Packages | ||
|
||
This repository is a monorepo containing the following packages: | ||
|
||
- [`@react-router/dev`](/packages/react-router-dev) | ||
- [`@react-router/express`](/packages/react-router-express) | ||
- [`@react-router/node`](/packages/react-router-node) | ||
- [`@react-router/serve`](/packages/react-router-serve) | ||
- [`react-router`](/packages/react-router) | ||
- [`react-router-dom`](/packages/react-router-dom) | ||
|
||
## Changes | ||
|
||
Detailed release notes for a given version can be found [on our releases page](https://github.com/remix-run/react-router/releases). | ||
|
||
## Funding | ||
|
||
You may provide financial support for this project by donating [via Open Collective](https://opencollective.com/react-router). Thank you for your support! | ||
|
||
## About | ||
- [react-router](./modules/react_router) | ||
- [@react-router/dev](./modules/_react_router_dev) | ||
- [@react-router/node](./modules/_react_router_node) | ||
- [@react-router/cloudflare](./modules/_react_router_cloudflare) | ||
- [@react-router/serve](./modules/_react_router_serve) | ||
- [@react-router/fs-routes](./modules/_react_router_fs_routes) | ||
|
||
React Router is developed and maintained by [Remix Software](https://remix.run) and many [amazing contributors](https://github.com/remix-run/react-router/graphs/contributors). | ||
## Previous Versions | ||
|
||
[fetch-api]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API | ||
- [v6](https://reactrouter.com/v6) | ||
- [v5](https://v5.reactrouter.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# create-react-router | ||
|
||
Create a new React Router app. | ||
|
||
```sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# React Router DOM | ||
This package simply re-exports everything from `react-router` to smooth the upgrade path for v6 applications. Once upgraded you can change all of your imports and remove it from your dependencies: | ||
|
||
The `react-router-dom` package is deprecated and only kept around for backwards-compatibility. It re-exports everything from the `react-router` package - you should convert your applications to import everything from `react-router` in v7 and beyond. | ||
```diff | ||
-import { Routes } from "react-router-dom" | ||
+import { Routes } from "react-router" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# React Router | ||
`react-router` is the primary package in the React Router project. | ||
|
||
The `react-router` package is the heart of [React Router](https://github.com/remix-run/react-router) and provides all the core functionality. | ||
## Installation | ||
|
||
```sh | ||
npm i react-router | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters