Skip to main content
InterviewHubPRO
Section Overview
Q72

Question 72 of 407

General

18%
React Core & Hooks (407 Qs)•General

What are the exceptions on React component naming?

junior LevelCode ExampleComponents

The component names should start with an uppercase letter but there are few exceptions to 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,

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