I work with React and when I need to create some variable I use for example or:
const [show, setShow] = useState(false);
or:
const canvas = useRef(null);
Are there any situations when I can use instead useState or useRef just regular variable
let a
and make regular assignment? I came across a code in which ordinary variables and ordinary assignments are applied, but it seems to me that this is not correct. Сan I replace let a = useRef(null) with let a = null