react-function-components Flashcards

1
Q

What is a React component?

A

abstraction of your entire website - into reusable code - they take an input called props and return react elements describing what should appear on the page

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

How do you define a function component in React?

A

you can define it similiar to a js function in es5 or es6 with a capital starting letter

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?

A

ReactDOM.render(element,container)

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