react-class-component Flashcards
1
Q
How do you create “class” component in React?
A
class class”NAME” extends React.Component{ render(){
2
Q
How do you access props in a class component?
A
this.props.the name of the attribute.