Skip to content

Conversation

@Miri-AP
Copy link

@Miri-AP Miri-AP commented Apr 15, 2021

Mini-Challenge 4: State Management

The Challenge

  1. Create the Provider for the Global Context.
  2. Consume the Global Context inside the components that require it: Remember the hook useContext? It's time to make use of it!
  3. Create test cases for your Global Context and for the components that consume it.

Note: Remember to apply TDD as much as you can.

Acceptance Criteria

  • The search term is stored and retrieved from the Global Context correctly.
  • The appearance theme is stored on the Global Context and applied correctly to the App UI.
  • useReducer hook is implemented correctly to manage the Global State.

Bonus Points

  • Testing coverage is above 70%. (Please include a screenshot of the code coverage report in your PR description).

Screen Shot 2021-04-14 at 23 28 44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant