React 双向数据绑定

需求: 我在子组件中的inPut框输入内容的时候,我需要文本中指定的name内容也跟着改变 子组件: import React from 'react' const person = (props) =>{ return( <div> <p>我的名字叫{props.name}</p> <input type="text" onChange={prop
相关文章
相关标签/搜索