In this lesson we see how to refactor a function component into a class component with typed props and state as well as defaultProps.