I'm not re-assigning anything. someComponent is a React element and <SomeComponent/> is a function call that returns a React element. These are two different things from JavaScript standpoint.
If you have A = () => ({}) then A() !== A() but when a = A() then a === a. That's the gist of it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm not re-assigning anything.
someComponent
is a React element and<SomeComponent/>
is a function call that returns a React element. These are two different things from JavaScript standpoint.If you have
A = () => ({})
thenA() !== A()
but whena = A()
thena === a
. That's the gist of it.