Clear value into input using useState or useRef (React)

后端 未结 0 1562
广开言路
广开言路 2020-11-30 16:18

I got hook:

const [myName, setMyName] = useState("");
const myNameRef = useRef();

Then I have form:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题