跳到主要内容
版本:0.9.0-beta.2

Namespace: react

molecule.react

Enumerations

Classes

Interfaces

Type aliases

ControllerObject

Ƭ ControllerObject: Object

Index signature

[index: string]: Controller

Defined in

src/react/connector.tsx:12


ServiceObject

Ƭ ServiceObject: Object

Index signature

[index: string]: IComponent

Defined in

src/react/connector.tsx:8

Functions

cloneReactChildren

cloneReactChildren<P>(children, props): React.ReactNode

Clone react children props

Type parameters

Name
P

Parameters

NameTypeDescription
childrenReactNodeReact.ReactNode
propsPParent props

Returns

React.ReactNode

Defined in

src/react/helper.ts:8


connect

connect<T>(Service, View, Controller?): React.ComponentType<T>

Type parameters

NameType
Tany

Parameters

NameType
ServiceIComponent<any> | ServiceObject
ViewComponentType<any>
Controller?Controller | ControllerObject

Returns

React.ComponentType<T>

Defined in

src/react/connector.tsx:16