react 使用笔记
1.学习:https://reactjs.bootcss.com/learn
2.项目启动报错:Delete ␍
prettier/prettier
解决:https://blog.csdn.net/qq_30272167/article/details/133280165
3.访问地址配置
文件:config-overrides.js
devServer: function (configFunction) {return function (proxy, allowedHost) {const config = configFunction(proxy, allowedHost);config.proxy = {"/api": {// target: "http://10.30.1.12",//服务器target: "http://localhost:9999",//测试ws: true,changeOrigin: true,pathRewrite: {"^/api": "",},},};return config;};
},