FrontendDeveloper.in

React question detail

What are the exceptions on React component naming?

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,

 render() {
return (
<obj.component/> // `React.createElement(obj.component)`
)
}
Back to all React questions
Get LinkedIn Premium at Rs 399