https://github.com/pr0h0/react-hoouter
React module from routing
https://github.com/pr0h0/react-hoouter
react react-hooks react-router router
Last synced: 4 months ago
JSON representation
React module from routing
- Host: GitHub
- URL: https://github.com/pr0h0/react-hoouter
- Owner: pr0h0
- License: mit
- Created: 2021-03-25T16:54:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-26T17:23:05.000Z (about 5 years ago)
- Last Synced: 2024-11-16T01:39:55.562Z (over 1 year ago)
- Topics: react, react-hooks, react-router, router
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# React router hooks
React router module using react hooks
```
import {Router, Route, Link, Redirect } from 'react-hoouter';
function App(){
return (
// match only '/' path
// match any path starting with "/user*"
// Match any route // renders always
Login // Change route when clicked to '/login'
// Force redirect to "/notFound" when rendered // use with caution
)}
```