0
What is the difference between React Node, Element, and Component?
subina kallyani
easy
0completed
0
Answer
React Node
A React Node means anything that React can display on the screen.
It can be:
- Text or numbers
- JSX elements
nullorfalse- An array of nodes
React Element
A React Element is a plain object that describes what the UI should look like.
It is:
- Created using JSX
- Immutable
- A building block of the Virtual DOM
React Component
A React Component is a function or class that returns React elements.
It is used to:
- Reuse UI
- Add logic and state
Click to Reveal Answer
Tap anywhere to see the solution
Revealed
Comments0