Skip to content

abranhe/react-redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-redirector Build Status

Redirect to a URL using React

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