摘要: import React, {Component,lazy, Suspense} from 'react' const About = lazy(() => import(/*webpackChunkName: 'about'*/'./child.jsx')) class Layout extend 阅读全文
posted @ 2021-03-29 15:52 异地大光码 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 第一种: import React, {Component, createContext, useContext} from 'react' const Context = createContext() function Middle () { return ( <div> middle <Chi 阅读全文
posted @ 2021-03-29 11:44 异地大光码 阅读(287) 评论(0) 推荐(0) 编辑