React-Components Flashcards

1
Q

What is a React component?

A

A component is a javascript function that allows you to build UI’s by allowing you to build markup, apply CSS styling and JS logic all in one.

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

How do you define a component in React?

A

By creating a javascript function where the first letter of the function name has to be capitalized

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

How do you mount a component to the DOM (or “render” a component)?

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