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 'inferno'
import { createElement } from 'inferno-create-element'
import { connectFactory } from 'fela-bindings'
import { RendererContext } from './context'
import FelaTheme from './FelaTheme'
export default connectFactory(
Component,
createElement,
RendererContext,
FelaTheme
)
/* @flow */
import { Component, createElement } from 'react'
import PropTypes from 'prop-types'
import { connectFactory, THEME_CHANNEL } from 'fela-bindings'
import withTheme from './withTheme'
export default connectFactory(Component, createElement, withTheme, {
renderer: PropTypes.object,
[THEME_CHANNEL]: PropTypes.object,
})
/* @flow */
import { h, Component } from 'preact'
import { connectFactory } from 'fela-bindings'
import withTheme from './withTheme'
export default connectFactory(Component, h, withTheme)