react
yangchengguo
喜欢写代码装B的感觉
展开
-
react
1.安装react脚手架新建项目并运行==>1. npm install -g create-react-app==>2. create-react-app start-app==>3. cd start-app==>4. npm start2.如何安装并使用yarn==>1.macOSbrew install yarn==...原创 2019-10-08 14:12:55 · 73 阅读 · 0 评论 -
React 报错"Cannot read property 'setState' of undefined"
App.jsimport React, { Component } from 'react';import './App.css';class App extends Component { constructor(props){ super(props); this.state = { num: 90 }...转载 2019-10-08 14:57:10 · 476 阅读 · 0 评论