in React JS by

What are the exceptions on React component naming?

1 Answer

0 votes

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,

   return (
       <obj.component /> // `React.createElement(obj.component)`
Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
asked May 20, 2020 in React JS by SakshiSharma
0 votes
asked Mar 1, 2020 in React JS by RShastri
0 votes
asked Jan 31 in React JS by Robindeniel
0 votes
asked Jul 2, 2019 in React JS by Venkatshastri
0 votes
asked Sep 19, 2020 in XML by SakshiSharma