Class: ContextProvider

ContextProvider

new ContextProvider()

ei上下文提供组件 此模块主要用于提供React组件的`context`环境 凡在`ContextProvider`中的组件,都可以通过向`contextTypes`添加`ei`属性来获得`context`的访问权限 在`ei`属性中,我们提供了`store`和`dispatch`两个接口 分别用来获取`store`数据和发送`action`
Source:

Extends

  • ReactComponent

Members

childContextTypes :Object

子控件上下文属性类型描述符
Type:
  • Object
Source:

propTypes :Object

`ContextProvider`实例化参数类型描述符 `ContextProvider`组件必须包含有一个ei属性
Type:
  • Object
Source:

Methods

(protected) getChildContext() → {Object}

获取子控件上下文
Source:
Returns:
Type
Object

render() → {ReactElement}

渲染
Source:
Returns:
Type
ReactElement