# myReactLearn **Repository Path**: halabs/my-react-learn ## Basic Information - **Project Name**: myReactLearn - **Description**: react基础的学习过程 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-27 - **Last Updated**: 2021-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: React, Redux, react-router-dom ## README ## 自定cra配置 + 安装 ```js npm i @craco/craco -D ``` + 根目录下创建 craco.config.js ```js module.exports = { babel: { // 自定babel配置 presets: [], plugins: [], loaderOptions: { } }, webpack: { // 定义webpack别名 添加插件 alias: {}, plugins: { add: [], /* An array of plugins */ } }, devServer: { // 自定义服务器 } }; ``` + 修改package.json ```json "scripts": { "start": "craco start", "build": "craco build", "test": "craco test", "eject": "react-scripts eject" } ``` 注意:修改完配置 要重启 ## react常用组件库 + antd 蚂蚁金服 + antd-mobile