Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ReactFreeStyle.prototype.emitChange = function () {
if (ReactCurrentOwner.current != null) {
console.warn('Inline styles must be registered before `render`')
return
}
FreeStyle.prototype.emitChange.apply(this, arguments)
}
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 () {