启动项目的时候用npm run serve发现报了以下的错误
npm ERR! Missing script: "serve"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can
2022年06月17日
启动项目的时候用npm run serve发现报了以下的错误
npm ERR! Missing script: "serve"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can
2022年06月14日
需要先安装 ES7 React/Redux/GraphQL/React插件
做RN可以省时的快捷键 rcc,rcf,sst
ES7 React/Redux/GraphQL/React-Native snippets常用代码块
生成无状态组件 rfc
生成类组件 rcc
打印 clg
导入 imp
导入React imr
this.setState
2022年06月13日
第一步:
npm i -g create-react-app
第二步:
create-react-app day01
2022年06月13日
本地html文件中的script标签引入ES6的模块,直接在浏览器中打开该html文件,发现报错了:Uncaught SyntaxError: Cannot use import statement outside a module
对应的index.html:
<!DOCTYPE html>
<html>
<head>
Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.