react-elements Flashcards

1
Q

What is React?

A

React is a JavaScript library for creating user interfaces

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

What is a React element?

A

A React element is a plain object and it describes what you want to see on the screen.

or

A React element is an object that represents the HTML element, such as an ‘h1’, ‘div’, or a ‘p’ tag.

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

By calling the “render” method of the “root” object

or

Create the root element; and from the root element, call the render method.

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