@kne/global-context

1.0.0 • Public • Published

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

属性名 说明 类型 默认值

Readme

Keywords

none

Package Sidebar

Install

npm i @kne/global-context

Weekly Downloads

33

Version

1.0.0

License

none

Unpacked Size

4.81 kB

Total Files

6

Last publish

Collaborators

  • metacoo
  • yangwang123456
  • juliewang
  • lingtong