![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
wang_liuyong
沧海一粟
展开
-
react之redux
function counter(state, action) { if (typeof state === 'undefined') { return 0 } switch (action.type) { case 'ADD'://根据动作更改state return state ...原创 2018-11-25 23:49:02 · 116 阅读 · 0 评论 -
react1
1.使用bootstrap样式npm install bootstrap --save在入口index.js中引入样式import ‘bootstrap/dist/cssbootstrap.min.css’2.受控组件表单export default class NameCard extends Component{ constructor(props){ super(pro...原创 2018-12-02 17:41:12 · 125 阅读 · 0 评论 -
react-router
安装demo1 import { BrowserRouter as Router, Route, Link } from "react-router-dom" const Index = () => <h2>Home</h2>; const About = () => <h2>About</h2>...原创 2018-12-03 19:46:14 · 94 阅读 · 0 评论