![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深入浅出react和redux
wirenc
react,express开发 ,安全审计 ,企业信息系统安全运维加固
展开
-
1.1.1 create-react-app工具
npm install --glocal create-react-app create-react-app first_react_app cd first_react_app npm start visit http://localhost:3000/原创 2017-06-25 10:47:10 · 509 阅读 · 0 评论 -
1.2 增加一个新的react组件
src/index.jsimport React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import ClickCounter from './ClickCounter'; import registerServiceWorker from './registerServiceWorker';原创 2017-06-25 12:08:38 · 419 阅读 · 0 评论 -
1.2.1 JSX
判断一个元素是HTML还是React组件的原则就是看第一个字母是否大写,import React,{Component} from 'react'; class ClickCounter extends Component{ constructor(props){ super(props); this.onClickButton = this.onClickButton.bind原创 2017-06-25 12:14:36 · 355 阅读 · 0 评论