随笔分类 -  react

摘要:1.第一种自己定义组件在加载时调用 1.1在工具类文件夹utils下面创建一个asyncComponent.js文件写入一下代码 import React, { Component } from 'react' export const asyncComponent = (fn) => { // r 阅读全文
posted @ 2020-10-21 22:42 小不点灬 阅读(6630) 评论(0) 推荐(0)