REACT JS : Is it possible to access/modify state value if u have the component ref (HOOKS)

前端 未结 0 1470
北荒
北荒 2021-01-02 03:58
export const SomeBtn= (props) => {
    const btnRef= createRef();
    const { prop1, prop2 } = props;
    const [myState, setMyState] = useState("default&quo         


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