proppy-frint-react
FrintJS + React integration for ProppyJS
Guide
Installation
With npm:
$ npm install --save proppy react proppy-react frint-react proppy-frint-react
Via unpkg CDN:
Usage
In your Root component, wrap it with ProppyProvider
component, and it will take care of getting all the providers from your FrintJS app automatically:
// components/Root.js;; ; { return <ProppyProvider> <MyComponent /> </ProppyProvider> ;}
Now anywhere from your components tree, you can use the attach
higher-order component:
// components/MyComponent.js;;; const P = ; { const foo bar = props; return <p></p>;} PMyComponent;
API
ProppyProvider
For setting providers at React's context-level.