- Why is it always a good idea to initialize the state of a component?
- Because if the render() method expects state values, you need to make sure they're always there to avoid unexpected rendering behavior.
- When should you use properties instead of state?
- State should only be used for values that can change. For everything else, properties should be used.
- What is a context in React?
- Context is used to avoid transient properties. Contexts are used to share common data with a select number of components.