I know useEffect() with no array run the callback only at the first render.
Then what is the differences between useEffect(()=>{},[]) and no useEffect().
I mean between this:
function myComponent() {
// some states, variables
useEffect(() => {
// do something on mount <= this is my current concern.
}, [/* empty */]);
// return Element ...
}
and this:
function myComponent() {
// some states, variables
// do something on mount <= this is my current concern.
// return Element ...
}