@ringcentral/web-apps-react
TypeScript icon, indicating that this package has built-in type declarations

0.7.8 • Public • Published

RingCentral Web Apps React

The purpose of this library is to synchronize page location with history object of React.

The reason why it is needed is this bug of React Router: https://github.com/ReactTraining/react-router/issues/7113.

Usage

This library can be used without Web Apps.

Simply put the LocationSync anywhere under Router in your hierarchy of components:

import {BrowserRouter, Route} from 'react-router-dom';
import {LocationSync} from '@ringcentral/web-apps-react';

export default () => (
    <BrowserRouter>
        <LocationSync />
        <Route />
        <Route />
        <Route />
        <Route />
    </BrowserRouter>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @ringcentral/web-apps-react

Weekly Downloads

45

Version

0.7.8

License

none

Unpacked Size

9.47 kB

Total Files

7

Last publish

Collaborators

  • tylerlong
  • kirill.konshin