+1 vote
in ReactJS by

What are the exceptions on React component naming?

1 Answer

0 votes
by

The component names should start with a uppercase letter but there are few exceptions on this convention. The lowercase tag names with a dot (property accessors) are still considered as valid component names. For example the below tag can be compiled to a valid component,

render(){
   return (
       <obj.component /> // `React.createElement(obj.component)`
      )
}

Related questions

0 votes
asked Apr 15, 2022 in ReactJS by Robindeniel
0 votes
asked Mar 5, 2022 in ReactJS by DavidAnderson
...