React-Components Flashcards

1
Q

What is a React component?

A

A react component is a javascript function that can be used to create parts of the UI and provide logic and styling to the component

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

When you define a React component, it’s name must be capitalized unlike regular javascript functions

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

How is a component “rendered” (made visible on the browser page)?

A

by using the render() method

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