# antd-pro-test **Repository Path**: jdkerr/antd-pro-test ## Basic Information - **Project Name**: antd-pro-test - **Description**: 踩坑 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-08-02 - **Last Updated**: 2021-10-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 基于Ant Design Pro v4 ### 改动说明 - 使用scss - 只需要安装node-sass、sass-loader,其它umi内部已经处理了 - 关闭了css modules,更好用点,需要注意作用域 - 使用anyscript! - propTypes、defaultProps - ts是限制的是编译时,propTypes是限制运行时 - IProps代替propTypes - defaultProps还是defaultProps。。 - 函数式组件 - 无状态:React.FC - 有状态:React.SFC - defaultProps - Typescript 3.0开始支持对使用 defaultProps 对 JSX props 进行推断, 在 defaultProps 中定义的 props 可以不需要'?'可选操作符修饰. 代码如上 👆