react-class-components Flashcards
1
Q
How do you create “class” component in React?
A
Creating a class component is pretty simple; just define a class that extends Component and has a render function. From there, you can use it in any other component. You don't have to define one component per file, but it's probably a good idea. -https://www.digitalocean.com/community/tutorials/react-class-components
2
Q
How do you access props in a class component?
A
this.props