How to use the free-style.FreeStyle.prototype function in free-style

To help you get started, we’ve selected a few free-style 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 blakeembrey / react-free-style / react-free-style.js View on Github external
ReactFreeStyle.prototype.emitChange = function () {
  if (ReactCurrentOwner.current != null) {
    console.warn('Inline styles must be registered before `render`')

    return
  }

  FreeStyle.prototype.emitChange.apply(this, arguments)
}
github blakeembrey / react-free-style / react-free-style.js View on Github external
var ReactCurrentOwner = require('react/lib/ReactCurrentOwner')
var ExecutionEnvironment = require('react/lib/ExecutionEnvironment')

/**
 * Create a React Free Style instance.
 */
function ReactFreeStyle () {
  FreeStyle.call(this)

  this.Element = createElement(this)
}

/**
 * Inherits from `free-style`.
 */
ReactFreeStyle.prototype = Object.create(FreeStyle.prototype)

/**
 * Create a new React Free Style instance.
 *
 * @return {ReactFreeStyle}
 */
ReactFreeStyle.prototype.fresh = function () {
  return new ReactFreeStyle()
}

/**
 * Create a mixin for React.
 *
 * @return {Object}
 */
ReactFreeStyle.prototype.mixin = function () {

free-style

Make CSS easier and more maintainable by using JavaScript

MIT
Latest version published 11 months ago

Package Health Score

64 / 100
Full package analysis