You can also use union type like this <number | null> if you don't have an initial state. Set types on useRef. The useRef hook returns ...
確定! 回上一頁