react-recoil-flipper-client
v1.0.1
Published
Flipper React Provider for the flipper-plugin-react-recoil
Downloads
4
Readme
react-recoil-flipper-client
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