"But Kent" you ask, "what if I want an update to a ref to result in a re-render?" If that's the case, what you actually want is useState / useReducer , not ...
確定! 回上一頁