frintjs / frint-props

Compose reactive props in FrintJS applications
https://frint.js.org
MIT License
12 stars 1 forks source link

frint-props: create `compose` function #6

Closed fahad19 closed 6 years ago

fahad19 commented 6 years ago

The compose function should take a bunch of other functions as arguments, and return a combined single version:

import { compose } from 'frint-props';

const composedFunc = compose(
  withFoo(),
  withBar()
);

const generatedProps$ = composedFunc(app, parentPropsIfAny$);
fahad19 commented 6 years ago

Depends on #4