Elements Flashcards
1
Q
What is a React element?
A
An element describes what you want to see on the screen: const element = <h1>Hello, world</h1>;
2
Q
What is React?
A
It is a a development server that uses Webpack to compile React, JSX, and ES6, auto-prefix CSS files.
3
Q
How do you mount a React element to the DOM?
A
“Mounting” is when React “renders” the component for the first time and actually builds the initial DOM from those instructions.
npx create-react-app my-app