What is the difference between an element and a component?
Audio flashcard · 0:14
Nortren·
What is the difference between an element and a component?
0:14
A component is a function or class that describes a piece of UI. An element is a plain object that describes what should appear on the screen, typically created by calling a component or writing JSX. Elements are cheap to create; components are reusable factories.