@cerebral/inferno
Advanced tools
Comparing version 3.2.0-1519234729886 to 3.2.0-1519236826541
@@ -9,10 +9,6 @@ 'use strict'; | ||
var _infernoComponent = require('inferno-component'); | ||
var _inferno = require('inferno'); | ||
var _infernoComponent2 = _interopRequireDefault(_infernoComponent); | ||
var _cerebral = require('cerebral'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -52,5 +48,5 @@ | ||
return Container; | ||
}(_infernoComponent2.default); | ||
}(_inferno.Component); | ||
exports.default = Container; | ||
//# sourceMappingURL=Container.js.map |
@@ -11,14 +11,8 @@ 'use strict'; | ||
var _infernoComponent = require('inferno-component'); | ||
var _inferno = require('inferno'); | ||
var _infernoComponent2 = _interopRequireDefault(_infernoComponent); | ||
var _infernoCreateElement = require('inferno-create-element'); | ||
var _infernoCreateElement2 = _interopRequireDefault(_infernoCreateElement); | ||
var _cerebral = require('cerebral'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -112,3 +106,3 @@ | ||
return BaseComponent; | ||
}(_infernoComponent2.default); | ||
}(_inferno.Component); | ||
@@ -133,3 +127,3 @@ function HOC(dependencies, mergeProps, Component) { | ||
value: function render() { | ||
return (0, _infernoCreateElement2.default)(Component, this.view.getProps(this.props)); | ||
return (0, _infernoCreateElement.createElement)(Component, this.view.getProps(this.props)); | ||
} | ||
@@ -136,0 +130,0 @@ }]); |
@@ -9,10 +9,6 @@ 'use strict'; | ||
var _infernoComponent = require('inferno-component'); | ||
var _inferno = require('inferno'); | ||
var _infernoComponent2 = _interopRequireDefault(_infernoComponent); | ||
var _cerebral = require('cerebral'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -48,5 +44,5 @@ | ||
return StateContainer; | ||
}(_infernoComponent2.default); | ||
}(_inferno.Component); | ||
exports.default = StateContainer; | ||
//# sourceMappingURL=StateContainer.js.map |
{ | ||
"name": "@cerebral/inferno", | ||
"version": "3.2.0-1519234729886", | ||
"version": "3.2.0-1519236826541", | ||
"description": "Inferno view for Cerebral", | ||
@@ -17,6 +17,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"babel-plugin-inferno": "^3.2.0" | ||
"babel-plugin-inferno": "^4.0.0" | ||
}, | ||
"dependencies": { | ||
"cerebral": "^4.2.0-1519234729886" | ||
"cerebral": "^4.2.0-1519236826542" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
@@ -7,7 +7,7 @@ # @cerebral/inferno | ||
`npm install @cerebral/inferno inferno inferno-component inferno-create-element babel-plugin-inferno` | ||
`npm install @cerebral/inferno inferno babel-plugin-inferno` | ||
## Container | ||
```js | ||
import Inferno from 'inferno' | ||
import { render } from 'inferno' | ||
import {Controller} from 'cerebral' | ||
@@ -26,3 +26,3 @@ import {Container} from '@cerebral/inferno' | ||
Inferno.render(( | ||
render(( | ||
<Container controller={controller}> | ||
@@ -36,4 +36,3 @@ <App /> | ||
```js | ||
import Inferno from 'inferno' | ||
import Component from 'inferno-component' | ||
import { Component } from 'inferno' | ||
import {connect} from '@cerebral/inferno' | ||
@@ -40,0 +39,0 @@ import {state, signal} from 'cerebral/tags' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21929
247
60