Запитання 2
What is the difference between a React Node, React Element, and a React Component?
Варіанти відповідей
A Node is anything React can render; an Element is an immutable object describing UI; a Component is a function or class returning Nodes.
A Node is a class component only; an Element is a DOM node; a Component is a string or number.
A Node is a JavaScript string; an Element is a React hook; a Component is a JSX tag.
A Node is a CSS selector; an Element is an HTML element; a Component is a DOM API.