What's the difference between useRef() and useRef(null)? I prefer, and could go with the undefined all the time, but online examples always go with the null. So I am wondering.
It is up to you to decide which one of the two to go with. The reason why people go with null over undefined boils down to the difference between the two. You can read about it here.
For further actions, you may consider blocking this person and/or reporting abuse
What's the difference between useRef() and useRef(null)? I prefer, and could go with the undefined all the time, but online examples always go with the null. So I am wondering.
It is up to you to decide which one of the two to go with. The reason why people go with
nulloverundefinedboils down to the difference between the two. You can read about it here.