elements Flashcards

1
Q

What is React?

A

React is a JavaScript library for building 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

react elements are plain objects

Elements are what components are “made of”

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

To render a React element, first pass the DOM element to ReactDOM.createRoot(), then pass the React element to root.render():

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