Context
Take this example and build a CounterContext and a CounterContextProvider to use a context.
The context should have two functions countUp
and countDown
and a value called counter
.
countUp
should add 1 to the current counter
and countDown
should subtract 1 from it.