← BYTES
React.js·Starter·Ref: 4.1.16

What naming convention must a custom React component follow?

Have a question about this video? Mention reference 4.1.16 when you contact us.

a.It must start with an uppercase letter, so React can tell it apart from built-in HTML tags like `div`
b.It must start with a lowercase letter, same as a native HTML tag
c.It must be written in all capital letters
d.There is no naming convention at all
React uses the capitalization of a JSX tag to decide how to treat it: lowercase tags (`div`, `span`) are treated as built-in HTML elements, while capitalized tags (`MyComponent`) are treated as references to a component you defined.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES4116#Reactjs