![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
lianjiuxiao
这个作者很懒,什么都没留下…
展开
-
React 中 setState的对象、数组的操作
import {useState} from 'react' import './App.css'; function App() { let [count, setCount] = useState(0); let [arr, setArr] = useState([]); const handleClick = () => { count += 1; setCount(count) console.log(count) } const.原创 2021-06-06 19:22:08 · 4742 阅读 · 1 评论 -
react脚手架create-react-app 搭建自由配置的应用
一、安装 npm install -g create-react-app 二、创建react应用 create-react-app是全局命令来创建react项目 create-react-app my-app my-app ├── README.md ├── node_modules ├── package.json ├── .gitignore ├── public │ ...原创 2019-04-02 11:20:48 · 139 阅读 · 0 评论