REACT CLASS COMPONENTS Flashcards

1
Q

How do you create “class” component in React?

A

class Name extends React.component {
render() {
return whatever
}
}

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

How do you access props in a class component?

A

this.props.whatever

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