Skip to content

Commit

Permalink
docs: readme.md add auth exmaple
Browse files Browse the repository at this point in the history
  • Loading branch information
onshinpei committed Oct 8, 2022
1 parent 1679829 commit 300e9ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ npm install react-router-manage --save
- [config children routes, eg: **`Outlet`** children level routes](https://codesandbox.io/s/react-router-manage-children-obi6t2)
- [global guard `beforeEachMount`](https://codesandbox.io/s/react-router-manage-beforeeachmount-247k3l)
- [routes operation `useAddRoutes`,`useUpdateRoutes`, `useRemoveRoutes`](https://codesandbox.io/s/react-router-manage-actions-re4qxb?file=/src/App.tsx)
- [auth-basic](https://codesandbox.io/s/react-router-manage-auth-nww6rp)

## Configuration items

Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ npm install react-router-manage --save
- [子级路由的配置,即:**`Outlet`** 路由的配置](https://codesandbox.io/s/react-router-manage-children-obi6t2)
- [全局路由守卫`beforeEachMount`](https://codesandbox.io/s/react-router-manage-beforeeachmount-247k3l)
- [路由操作`useAddRoutes`,`useUpdateRoutes`, `useRemoveRoutes`](https://codesandbox.io/s/react-router-manage-actions-re4qxb?file=/src/App.tsx)
- [认证-基础示例](https://codesandbox.io/s/react-router-manage-auth-nww6rp)

## 配置项

Expand Down
2 changes: 1 addition & 1 deletion examples/auth/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function LoginPage() {
<form onSubmit={handleSubmit}>
<label>
Username: <input name="username" type="text" />
</label>{" "}
</label>
<button type="submit">Login</button>
</form>
</div>
Expand Down

0 comments on commit 300e9ee

Please sign in to comment.