![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React学习
文章平均质量分 62
学习react hooks 、 redux等内容
floyd_hh
这个作者很懒,什么都没留下…
展开
-
react学习
1. 概述 声明式的视图层(JSX) 从状态到UI——单向数据流 虚拟DOM——灵活的渲染 Diff算法——高效的DOM操作 React相当于MVC框架的V层,需要结合其他库发挥作用 2. 基础 JSX语法: HTML写在js中,用{}包裹对象 组件 类组件 import React, { Component } from 'react'; import ReactDOM from 'react-dom'; class App extends Component { constru原创 2021-10-24 12:53:05 · 80 阅读 · 0 评论 -
Redux学习
title: Redux学习 date: 2021-08-24 11:14:16 tags: react description: Redux学习 1. Redux工作流程 2.创建Redux中的仓库 // npm install --save redux // store/index.js import { createStore } from 'redux' import reducer from './reducer' const store = createStore(reducer) //.原创 2021-09-11 16:02:23 · 37 阅读 · 0 评论 -
react-HOOK
title: react HOOK date: 2021-08-09 11:17:42 tags: react description: react16.8 hook学习 1. useState function xxx(props) { const [isOnline,setIsOnline] = useState(null); } 2.useEffect function xxx(props) { const [isOnline,setIsOnline] = useState(nul.原创 2021-09-11 16:04:41 · 56 阅读 · 0 评论