create-react-app
fed_jiao
这个作者很懒,什么都没留下…
展开
-
create-react-app创建项目时的初始化配置
npx create-react-app jira --template typescript //问题一:项目中目录的引用,避免多个…/…/ 在tsconfig.json文件中加入baseUrl: “./src”, //问题二:团队统一的格式化规则,项目中安装格式化插件prettier // https://prettier.io/docs/en/install.html //第一步: yarn add --dev --exact prettier //第二步: echo {}> .prettie原创 2021-06-08 11:19:31 · 210 阅读 · 0 评论 -
create-react-app 自定义主题craco
create-react-app 自定义主题craco yarn create react-app antd-demo cd antd-demo yarn start yarn add antd 修改 src/App.js,引入 antd 的按钮组件。 import React from 'react'; import { Button } from 'antd'; import './App.less'; const App = () => ( <div className="App原创 2021-03-16 09:39:53 · 294 阅读 · 1 评论 -
从0到1的移动端项目create-react-app初始化-react17
从0到1的移动端项目create-react-app初始化-react17 1、create-react-app 初始化项目: npm install -g create-react-app create-react-app my-mobile-app cd my-mobile-app npm start 安装antd-mobile npm install antd-mobile --save 2、入口页面 (html 或 模板) 相关设置: <!DOCTYPE html> <ht原创 2021-02-24 15:35:49 · 546 阅读 · 1 评论 -
项目升级[email protected]
项目中升级react的命令 npm info react cnpm install --save [email protected] [email protected] npm info react-router-dom cnpm install --save [email protected]原创 2020-05-27 20:56:56 · 1146 阅读 · 0 评论 -
项目搭建react + react-router + react-redux + typescript + axios + webpack + less
npx create-react-app my-app --template typescript cd my-app npm start yarn add antd yarn add react-app-rewired customize-cra /* package.json */ "scripts": { - "start": "react-scripts start", + ...原创 2020-04-23 15:28:41 · 526 阅读 · 0 评论