Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-live-route
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
react-live-route
Commits
7f1576a1
Commit
7f1576a1
authored
Jun 22, 2018
by
Wee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(README): add README
parent
1eb55e80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
README.md
README.md
+38
-0
No files found.
README.md
0 → 100644
View file @
7f1576a1
<p
align=
"center"
>
An enhanced version of react-router-v4 Route. It can keep your Route live on unmatch path.
</p>
## ⚠️
NOT COMPLETED. STILL WORK IN PROGRESS.
## About
可以让 Route 在特定路径不匹配的时候隐藏(live)而不 unmount。
举个例子:
一个列表页,点击列表页中的项目会进入详情页,当进入详情页时,列表页会隐藏,当返回列表页时,列表页会恢复到上一次离开时的模样。
## Features
-
完全兼容 react-router-4
-
侵入性极小,只需引入一个 LiveRoute
-
完全恢复上一次离开页面时的模样
-
超简单的 API
## Usage
### livePath
LiveRoute 需要隐藏的页面的路由,规则与 react-router 的 path 一样。
```
jsx
<
LiveRoute
livePath
=
{}
...
/>
```
## Licence
MIT
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment