// ParentComponent.js
const [content, handleOpen] = useState({content: undefined})
const isLangChange = (e) => {
fetch(data).then((response) =>
handleOpen({
content: response
})
}
<ChildComponent prop1={content}/>
当子组件中存在onChange事件时,会触发isLangChange函数
有人可以解释吗?