📅  最后修改于: 2022-03-11 15:03:12.344000             🧑  作者: Mango
const App = () => {
const [state, setState] = React.useState({ first: "hello", second: "world" });
return (
setState({...state, first: ev.target.value})} />
setState({...state, second: ev.target.value})} />
)
}
ReactDOM.render( , document.getElementById('app'))