proppy-vue
React integration package for ProppyJS
Guide
Installation
With npm:
$ npm install --save proppy vue proppy-vue
Via unpkg CDN:
Usage
Render your Vue.js app with providers data:
// index.js; ; const providers = foo: 'foo value'; const app = provide: proppy: providers { return <MyComponent />; };
Now anywhere from your components tree, you can use the attach
higher-order component:
// components/MyComponent.js;; const P = ; const MyComponent = name: 'MyComponent' props: 'foo' 'bar' { const foo bar = this; return <p></p>; }; PMyComponent;
API
attach
attach(P)(Component)
Higher-order component for attaching your Proppy factory to your Component.