using useRef or createRef. 0. votes. I want to set the const [solution, setSolution] = useState(0); with the value of a input element by pressing a button.
確定! 回上一頁