react-class-components Flashcards
1
Q
How do you create “class” component in React?
A
class name of class extends react.component{ render(){
return(jsx in here)
}
}
2
Q
How do you access props in a class component?
A
prop. whatever your trying to access
this. props