An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# react-redirector [![Build Status](https://github.com/abranhe/react-redirector/workflows/Publish/badge.svg)](https://github.com/abranhe/react-redirector/actions) [![](https://img.shields.io/npm/v/react-redirector.svg)](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