react-redirector

0.0.9-alpha • Public • Published




react-redirector: 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

/react-redirector/

    Package Sidebar

    Install

    npm i react-redirector

    Weekly Downloads

    1

    Version

    0.0.9-alpha

    License

    MIT

    Unpacked Size

    4.05 kB

    Total Files

    4

    Last publish

    Collaborators

    • abranhe