@cerebral/react
Advanced tools
Comparing version 4.0.4 to 4.1.0-1551020966578
{ | ||
"name": "@cerebral/react", | ||
"version": "4.0.4", | ||
"version": "4.1.0-1551020966578", | ||
"description": "React view for Cerebral", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"cerebral": "^5.0.4" | ||
"cerebral": "^5.1.0-1551020966578" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
@@ -35,3 +35,3 @@ # @cerebral/react | ||
import React from 'react' | ||
import { state, sequences } from 'cerebral/proxy' | ||
import { state, sequences } from 'cerebral' | ||
import { connect } from '@cerebral/react' | ||
@@ -41,4 +41,4 @@ | ||
{ | ||
foo: state.foo, | ||
onClick: sequences.onClick | ||
foo: state`foo`, | ||
onClick: sequences`onClick` | ||
}, | ||
@@ -55,3 +55,3 @@ function MyComponent({ foo, onClick }) { | ||
import React from 'react' | ||
import { state, sequences } from 'cerebral/proxy' | ||
import { state, sequences } from 'cerebral' | ||
import { connect } from '@cerebral/react' | ||
@@ -61,4 +61,4 @@ | ||
{ | ||
foo: state.foo, | ||
onClick: sequences.onClick | ||
foo: state`foo`, | ||
onClick: sequences`onClick` | ||
}, | ||
@@ -77,3 +77,3 @@ class MyComponent extends React.Component { | ||
import React from 'react' | ||
import { state, sequences } from 'cerebral/proxy' | ||
import { state, sequences } from 'cerebral' | ||
import { connect } from '@cerebral/react' | ||
@@ -83,4 +83,4 @@ | ||
function MyComponent({ get }) { | ||
const foo = get(state.foo) | ||
const onClick = get(sequences.onClick) | ||
const foo = get(state`foo`) | ||
const onClick = get(sequences`onClick`) | ||
@@ -96,3 +96,3 @@ return <div onClick={() => onClick()}>{foo}</div> | ||
import React from 'react' | ||
import { sequences, state } from 'cerebral/proxy' | ||
import { sequences, state } from 'cerebral' | ||
import { connect } from '@cerebral/react' | ||
@@ -102,4 +102,4 @@ | ||
{ | ||
foo: state.app.foo, | ||
onClick: sequences.app.onClick | ||
foo: state`app.foo`, | ||
onClick: sequences`app.onClick` | ||
}, | ||
@@ -106,0 +106,0 @@ ({ foo, onClick }, ownProps, get) => { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
23662
2