JSX 空的根元素
2021-03-03 05:28
标签:pos OLE react exp render page secondary fixed end JSX 允许空的根元素,从而打破深嵌套。ReactRouter.HashRouter等组件都是空元素实现的。 JSX 空的根元素 标签:pos OLE react exp render page secondary fixed end 原文地址:https://www.cnblogs.com/develon/p/14283432.html空元素
return (
>
>
);
import * as React from ‘react‘;
import * as ReactRouter from ‘react-router-dom‘;
import { IconButton } from ‘@material-ui/core‘;
import HomeIcon from ‘@material-ui/icons/HomeTwoTone‘;
import router from ‘@/pages/router‘;
var cs = router.listCategory();
console.log(cs);
export default class extends React.Component {
render() {
return (