随笔分类 -  react

摘要:顺序是先写父组件 再写子组件 父组件: 1 import React from "react"; 2 import Child from "./Chid"; 3 class Parent extends React.Component{ 4 constructor(){ 5 super(); 6 t 阅读全文
posted @ 2022-08-12 23:07 请善待容嬷嬷 阅读(35) 评论(0) 推荐(0) 编辑
摘要:顺序的话先写子组件再写父组件 父组件: import React from "react"; import Child from "./Chid"; import Second from "./Second"; class Parent extends React.Component { const 阅读全文
posted @ 2022-08-12 22:37 请善待容嬷嬷 阅读(41) 评论(0) 推荐(0) 编辑
摘要:React 是一个声明式,高效且灵活的用于构建用户界面的 JavaScript 库 数据是向下流动的 这个和vue是一样的vue的数据也是向下流动的 第一步 安装npx create-react-app 项目名 //项目名不要写react 上一级目录也不能带中文和大写字母 创建组建的时候有类组件(也 阅读全文
posted @ 2022-08-11 11:11 请善待容嬷嬷 阅读(29) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示