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>;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly