English | 简体中文
| 方向 | 支持 |
|---|---|
| 定位 | 面向 rc-component 包的高性能 React Context 选择器工具。 |
| 包名 | @rc-component/context |
| 发布 | @rc-component/np / rc-np |
npm install @rc-component/contextimport { createContext } from '@rc-component/context';
const [Provider, useContext] = createContext({ count: 0 });
export { Provider, useContext };| 名称 | 说明 |
|---|---|
createContext(defaultValue) |
创建 Provider 与支持选择器的 context hook。 |
npm install
npm start
npm test
npm run lint
npm run tsc
npm run compile本地 dumi 站点默认运行在 http://localhost:8000.
npm run prepublishOnly发布流程通过 @rc-component/np 提供的 rc-np 命令处理。
@rc-component/context 基于 MIT 协议发布。