const Try = ({tryInfo}) => {
const [result , setResult ] = useState(tryInfo.result);
const onClick = () => {
setResult('1');
}
return (
<div onClick= {onClick}> {result} </div>
)
}
this.state = {
result : this.props.result
}