简介
框架害人啊
umijs
https://umijs.org/docs/getting-started#change-setting
mkdir umi-project && cd umi-project
npx @umijs/create-umi-app
npm install
npm run start
提交记录是一步步搭建的过程
没有比这个ui更难用的框架了 有请你告诉我 谢谢
不使用全球化 因为浏览器带的翻译要好用的多
react各个时期的生命周期
React组件生命周期 实例化
首次实例化 getDefaultProps getInitialState componentWillMount render componentDidMount
实例化完成后的更新 getInitialState componentWillMount render componentDidMount
存在期 组件已存在时的状态改变 componentWillReceiveProps shouldComponentUpdate componentWillUpdate render componentDidUpdate
销毁&清理期 componentWillUnmount