4 ms·
It destructures this, to get the LoginForm property, it could be written <this.LoginForm> because even if it starts with a lower case character that are transfo
by hokkos 10y ago
It destructures this, to get the LoginForm property, it could be written <this.LoginForm> because even if it starts with a lower case character that are transformed as string when there is a dot it is transformed as object :
<component /> compiles to React.createElement('component') (html tag)
<Component /> compiles to React.createElement(Component)
<obj.component /> compiles to React.createElement(obj.component)