Skip to the content.

Home Page

Class 32 Notes

Review, Research, and Discussion

  1. When you have multiple contexts it doesnt matter what kind of component you make. They can still be used in the same way. My personal preference would be to make it a functional component like any of the other React components I make.
  2. Some good use cases for global state are setting default values in an application. For instance when you want to toggle something or prevent an action.
  3. To test context you can use state and try to modify its setting.

Terms