https://github.com/abranhe/react-redirector
<Redirector/> Component: Redirect to a URL using React
https://github.com/abranhe/react-redirector
react react-redirect react-redirector redirect redirector
Last synced: about 2 months ago
JSON representation
<Redirector/> Component: Redirect to a URL using React
- Host: GitHub
- URL: https://github.com/abranhe/react-redirector
- Owner: abranhe
- License: mit
- Created: 2019-01-23T01:38:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-13T21:40:32.000Z (over 6 years ago)
- Last Synced: 2025-05-21T06:44:34.327Z (about 1 year ago)
- Topics: react, react-redirect, react-redirector, redirect, redirector
- Language: JavaScript
- Homepage: https://p.abranhe.com/react-redirector
- Size: 24.4 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
README
# react-redirector [](https://github.com/abranhe/react-redirector/actions) [](https://npmjs.com/package/react-redirector)
> Redirect to a URL using React
## Install
```
$ npm install react-redirector
```
## Usage
```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import Redirector from 'react-redirector';
const App = () => ;
ReactDOM.render(, document.getElementById('root'));
```
## API
### ``
Redirect to a URL, extends `window.location`.
### Props
`to`: Location to redirect the page.
## License
[MIT][license] License © [Carlos Abraham][abranhe]
[abranhe]: https://github.com/abranhe
[license]: https://github.com/abranhe/react-redirector/blob/master/license