摘要: 顺序是先写父组件 再写子组件 父组件: 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 请善待容嬷嬷 阅读(40) 评论(0) 推荐(0) 编辑