1.0.1 • Published 3 years ago

react-recoil-flipper-client v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-recoil-flipper-client

NPM JavaScript Style Guide

Flipper React Provider to visualize Recoil.js atoms and logs of its changes. This package is meant to be used with the [flipper-plugin-react-recoil](https://github.com/BenJeau/flipper-plugin-react-recoil) plugin, it must be installed from within Flipper.

Install

yarn add react-recoil-flipper-client

Or

npm install --save react-recoil-flipper-client

Usage

Simply put the <RecoilFlipperClient /> anywhere as a children of the <RecoilRoot> to send Recoil.js events to Flipper.

import { RecoilRoot } from 'recoil';
import RecoilFlipperClient from 'react-recoil-flipper-client'

const App: React.FC = () => {
  return (
    <RecoilRoot>
      <RecoilFlipperClient />
      ...
    </RecoilRoot>
  )
}

License

MIT © BenJeau

1.0.1

3 years ago

1.0.0

3 years ago