为什么页面跳转后,ReactDOM.render()就渲染不出来,没效果跳转后页面代码import React,{Component}from 'react';import ReactDOM from 'react-dom';import { Flex, WhiteSpace,Button } from 'antd-mobile';import U98 from '../images/robotmanage/u98.png';const Tip = ({ className = '', ...restProps }) => ( <span className={`${className} tip`} {...restProps}>登录</span>);const FlexExample = () => ( <div className="flex-container"> <Flex justify="center"> <img src={U98} alt="u89"/> </Flex> <Flex justify="center"> <div><p><Tip /></p></div> </Flex> <WhiteSpace size="lg" /> <Flex justify="center"> <Button>完成</Button> <Button>刷新</Button> </Flex> <WhiteSpace /> </div>);ReactDOM.render(<FlexExample />,document.getElementById('root'));求解答
添加回答
举报
0/150
提交
取消