Lecture 2 gives an overview of React, a library for writing declarative UI components.
- What dependencies does React have?
- How does React integrate with other tools (babel/eslint)?
- How do React component compose?
- What are props and state in React?
- What is React component lifecycle (basic level), when is render called?
All components that can be, are implemented as pure function components.
React hooks are functions that can be used in functional React components to use simple cases of local state in functional components.
- What are class components and pure function components, when to use which?
- How to type-check props?
Pure function components in React
- How to specify event handlers on native HTML elements?
- What are callback functions, how to pass them from parent to children?
- What is function context? How to bind a function to a context?