react-redirector
v0.0.9-alpha
Published
Redirect to a URL using React
Downloads
32
Maintainers
Readme
Install
$ npm install react-redirector
Usage
import React from 'react';
import ReactDOM from 'react-dom';
import Redirector from 'react-redirector';
const App = () => <Redirector to='https://abranhe.com'/>;
ReactDOM.render(<App/>, document.getElementById('root'));
API
<Redirector/>
Redirect to a URL, extends window.location
.
Props
to
: Location to redirect the page.
License
MIT License © Carlos Abraham