11-react使用props.children 处理父子组件之间的传值
摘要:
// props.children 组件传值 import { Component } from "react" import reactDom from "react-dom" // 床架一个 createRef 函数 用来创建 ref 对象 const Hello = (props) => { 阅读全文
posted @ 2023-04-30 15:57 流浪のwolf 阅读(297) 评论(0) 推荐(0) 编辑