← React Intermediate Questions - Set 9 Q87

What are the differences between React components and HTML elements?

React Intermediate Questions - Set 9

Example

<button onClick={…}>          // component: props, hooks, returns elements
<button class="btn">          // HTML element: string, attributes, DOM node

What to notice

← Back to the question list