Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcisbee authored Nov 1, 2021
1 parent b9b5898 commit 992a6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Ok so when you `yield` a context it automatically returns corresponding context.

_NOTE_: Do not destruct `countContext` as it will be transformed to simple value and not be updatable.

Here's a more in depth example of Contexts: [codesandbox.io/s/synks-30bze](https://codesandbox.io/s/synks-30bze?file=/src/index.tsx)
Here's a more in depth example of Contexts: [stackblitz.com/edit/vite-6agmqe](https://stackblitz.com/edit/vite-6agmqe?file=src/main.tsx)

#### Code reuse (mixins vs hooks story)

Expand Down Expand Up @@ -229,7 +229,7 @@ function* Counter() {
}
```

This example available in [https://codesandbox.io/s/synks-hooks-9fehi](https://codesandbox.io/s/synks-hooks-9fehi?file=/src/app/app.tsx)
This example available in [stackblitz.com/edit/vite-cdemev](https://stackblitz.com/edit/vite-cdemev?file=src/main.tsx)

This is it, now it's fully functional - locally scoped hook used in Counter component.

Expand Down

0 comments on commit 992a6e3

Please sign in to comment.