frint-props
Compose props reactively in FrintJS Apps
Guide
Installation
With npm:
$ npm install --save frint-props frint-react
Via unpkg CDN:
Usage
The package exposes a compose
higher-order component, that is similar to the one found in frint-props
.
You can use it as follows:
;;; { // props.counter (`Integer`) // props.setCounter (`Function`)} MyComponent;
API
compose
compose(...functions)(Component)
Higher-order component in React.
Arguments
Accepts multiple functions as available in frint-props
. The returned function is an enhancer that can be called directly with your base React component.