摘要: Context API: React.createContext(defaultValue):创建一个context对象。当React渲染订阅了这个Context对象的组件,这个组件会从组件树中离自身组件最近的那个匹配的Provider中读取到当前的context值。 Context.Provide 阅读全文
posted @ 2021-03-03 13:24 安静的嘶吼 阅读(86) 评论(0) 推荐(0) 编辑