effector-react
Advanced tools
Comparing version 0.18.3 to 0.18.4
@@ -13,12 +13,2 @@ import * as React from 'react' | ||
export function createComponent<Props, State>( | ||
store: Store<State>, | ||
renderProp: (props: Props, state: State) => React.ReactNode, | ||
): React.ComponentType<Props> | ||
export function createContextComponent<Props, State, Context>( | ||
store: Store<State>, | ||
context: React.Context<Context>, | ||
renderProp: (props: Props, state: State, context: Context) => React.ReactNode, | ||
): React.ComponentType<Props> | ||
export type Gate<Props = {}> = React.ComponentType<Props> & { | ||
@@ -36,3 +26,13 @@ isOpen: boolean | ||
export function useStore<State>(store: Store<State>): State | ||
export function createGate<Props>(name?: string): Gate<Props> | ||
export function createComponent<Props, State>( | ||
store: Store<State>, | ||
renderProp: (props: Props, state: State) => React.ReactNode, | ||
): React.ComponentType<Props> | ||
export function createContextComponent<Props, State, Context>( | ||
store: Store<State>, | ||
context: React.Context<Context>, | ||
renderProp: (props: Props, state: State, context: Context) => React.ReactNode, | ||
): React.ComponentType<Props> | ||
@@ -39,0 +39,0 @@ export function connect< |
{ | ||
"name": "effector-react", | ||
"version": "0.18.3", | ||
"version": "0.18.4", | ||
"description": "React bindings for effector", | ||
@@ -5,0 +5,0 @@ "main": "effector-react.cjs.js", |
58531
88