@kne/global-context
v1.0.0
Published
提供一个全局唯一的context,用在多个webpack 邦联模块系统中,可以避免不同版本导致context获取问题
Downloads
223
Keywords
Readme
global-context
安装
npm i --save @kne/global-context
概述
这里填写组件概要说明
示例
示例代码
- 这里填写示例标题
- 这里填写示例说明
- globalContext(@kne/global-context)
const { Provider, useGlobalContext } = globalContext;
const BaseExample = () => {
return <Provider value={{}}>
<div>我是一个示例组件</div>
</Provider>;
};
render(<BaseExample />);
API
|属性名|说明|类型|默认值| | --- | --- | --- | --- |