Skip to content

Commit

Permalink
Remove non-existing increment and decrement export (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Emili Pallares <[email protected]>
  • Loading branch information
emipc and Emili Pallares committed Sep 1, 2020
1 parent 3a21a97 commit 28f5db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exercise/01.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ function useCounter() {
return context
}

export {CounterProvider, useCounter, increment, decrement}
export {CounterProvider, useCounter}
```
```javascript
// src/screens/counter.js
import {useCounter, increment, decrement} from 'context/counter'
import {useCounter} from 'context/counter'

function Counter() {
const [state, dispatch] = useCounter()
Expand Down

0 comments on commit 28f5db8

Please sign in to comment.