Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 624 Bytes

ANSWERS.md

File metadata and controls

10 lines (9 loc) · 624 Bytes

Questions:

  1. What are PropTypes used for? proptypes are used to check data inputs to make sure they are the correct type.

  2. What is a lifecycle event in React? A lifecycle event is a function in React that controls how and when components are rendered or re-rendered after the virtual DOM is updated.

  3. What is a Higher Order Component? A higher order component takes in another component and returns a new component. The goal of HOC's is to increase reusability of components.

  4. What are three different ways to style components in React? inline-styling of components, external css sheets, and styled componenets.