React 雙向數據綁定

需求: 我在子組件中的inPut框輸入內容的時候,我需要文本中指定的name內容也跟着改變 子組件: import React from 'react' const person = (props) =>{ return( <div> <p>我的名字叫{props.name}</p> <input type="text" onChange={prop
相關文章
相關標籤/搜索