react-elements Flashcards
What is React?
React is a JavaScript library for creating user interfaces.
What is a React element?
It is the basic building block in a react application, it is an object representation of a virtual DOM node. React Element contains both type and property. It may contain other Elements in its props. React Element does not have any methods, making it light and faster to render than components.
-https://www.geeksforgeeks.org/what-is-the-difference-between-element-and-component/
How do you mount a React element to the DOM?
React will assign the current property with the DOM element when the component mounts, and assign it back to null when it unmounts.
-https://reactjs.org/docs/refs-and-the-dom.html