frintjs / frint-props

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

frint-props: create `withStore` #11

Closed fahad19 closed 6 years ago

fahad19 commented 6 years ago

This function will take care of getting the store provider (which can either be a frint-store or Redux store instance), and map its state and dispatchable actions accordingly:

Expected API usage

withStore(
  mapStateToProps, 
  mapDispatchToProps, 
  storeProviderName  = 'store'
  appName = null
)