Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* @flow */
import { Component } from 'preact'
import { ProviderFactory } from 'fela-bindings'
export default ProviderFactory(Component, children => children[0], {
defaultProps: {
rehydrate: true,
},
})
/* @flow */
import Component from 'inferno-component'
import { ProviderFactory } from 'fela-bindings'
export default ProviderFactory(Component, children => children, {
defaultProps: {
rehydrate: true,
},
})
/* @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
}
})