0% found this document useful (0 votes)
58 views3 pages

Crk1nke2EeirCxICdYDggg 5 Component Part1

React components are reusable pieces of UI that return React elements for display. They can accept inputs and are defined with specific naming conventions, where user-defined components must start with a capital letter. Lowercase tags are treated as built-in DOM tags.

Uploaded by

tsegab bekele
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views3 pages

Crk1nke2EeirCxICdYDggg 5 Component Part1

React components are reusable pieces of UI that return React elements for display. They can accept inputs and are defined with specific naming conventions, where user-defined components must start with a capital letter. Lowercase tags are treated as built-in DOM tags.

Uploaded by

tsegab bekele
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

React Components Overview

Jogesh K. Muppala
React Components
• A component returns a set of React elements that
should appear on the screen
• Components enable you to split your UI into
independent, reusable pieces
• Components also accept inputs
• Different kinds of components can be defined in React

2
Component Conventions
• User-defined component names must always
start with a capital letter
– These compile to React.createElement(. . .)
• Tags starting with lowercase letters are treated as
DOM tags
– Built-in components

You might also like