Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 953 Bytes

readme.md

File metadata and controls

39 lines (24 loc) · 953 Bytes

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