摘要: 1,Context:不需要在任何组件间添加props方法,可以任意之间的组件树进行 const Context = React.createContext(); const Provider = Context.Provider; //提供者 const Consumer = Context.Con 阅读全文
posted @ 2020-01-11 18:56 focus_yaya 阅读(663) 评论(0) 推荐(0) 编辑