Why do React components need to start with capital letters?
If you’ve ever worked with React, you might have noticed that component names always...
For further actions, you may consider blocking this person and/or reporting abuse
What about const SomeName = "some value" and projects without Babel?
SomeName
simply a variable, not a react component. Capitalization rule will not apply here, because its not being used as a react component here.Projects without babel, then React.createElement() Api is used Explicitly.
BTW, using Capital letters in Components, helps react to differentiate between
Native Elements and custom Components.
Eg.
If MyComponent is written in lower case (myComponent), React will look for a native HTML element
<myComponent>
which doesn't exists, causing the app to fail.I see the point with createElement, but I still can write lower case functional component on a project without Babel and still get the error. So it's not Babel concern, as your article states
Ahhhha nice!
Thanks
Thank you 👍
You are Welcome 😊
Short and informative thanks!
Thanks ❣️
Good information, thanks for providing
Thanks ❣️
Very good. Thank you!
Thank You ❣️
Concise and to the point. I love this!
Thanks Man ❣️
Hi, Amazing blog post!!
New information, thank.❤️