执行https://github.com/facebook/create-react-app中提到的命令后
npx create-react-app my-app
cd my-app
yarn start или npm start
发生错误。有谁知道出了什么问题?怎么修?
执行https://github.com/facebook/create-react-app中提到的命令后
npx create-react-app my-app
cd my-app
yarn start или npm start
发生错误。有谁知道出了什么问题?怎么修?
我之前没有接触过eslint...
我可以在 eslintconfig 中添加设置吗?
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
或者您需要创建一个单独的 .eslintrc 并在那里添加设置
另一个问题是 .eslintrc 是如何被编译器定位和运行的?
我开始学习 React,但在任何地方都找不到关于如何集成现成后端的指南。到处都有不同的例子来说明 index.js 后端是如何以及为什么这样编写的。