How to use the fela-bindings.connectFactory 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 / inferno-fela / src / connect.js View on Github external
/* @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
)
github robinweser / fela / packages / react-fela / src / connect.js View on Github external
/* @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,
})
github robinweser / fela / packages / preact-fela / src / connect.js View on Github external
/* @flow */
import { h, Component } from 'preact'
import { connectFactory } from 'fela-bindings'

import withTheme from './withTheme'

export default connectFactory(Component, h, withTheme)