How to use the fela-bindings.ProviderFactory function in fela-bindings

To help you get started, we’ve selected a few fela-bindings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robinweser / fela / packages / preact-fela / src / Provider.js View on Github external
/* @flow */
import { Component } from 'preact'
import { ProviderFactory } from 'fela-bindings'

export default ProviderFactory(Component, children => children[0], {
  defaultProps: {
    rehydrate: true,
  },
})
github robinweser / fela / packages / inferno-fela / src / Provider.js View on Github external
/* @flow */
import Component from 'inferno-component'
import { ProviderFactory } from 'fela-bindings'

export default ProviderFactory(Component, children => children, {
  defaultProps: {
    rehydrate: true,
  },
})
github robinweser / fela / packages / react-fela / src / Provider.js View on Github external
/* @flow */
import { Component } from 'react'
import { ProviderFactory } from 'fela-bindings'
import PropTypes from 'prop-types'

export default ProviderFactory(Component, children => children, {
  propTypes: {
    renderer: PropTypes.object.isRequired,
    rehydrate: PropTypes.bool.isRequired
  },
  childContextTypes: {
    renderer: PropTypes.object
  },
  defaultProps: {
    rehydrate: true
  }
})