createRef resets at every single render and always re-create its value while useRef always persists the data till the component is not unmounted ...
確定! 回上一頁