Skip to content

Commit

Permalink
docs(custom-useatom-hooks): simply fix typo (#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabigraphics authored Jul 15, 2022
1 parent 49b50fe commit 60eaac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-recipes/custom-useatom-hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function useFocusAtom(anAtom, keyFn) {
// how to use it
useFocusAtom(anAtom) {
useMemo(() => atom(initValue), [initValue]),
useCallBack((optic) => optic.prop('key'), [])
useCallback((optic) => optic.prop('key'), [])
}
```

Expand Down

1 comment on commit 60eaac6

@vercel
Copy link

@vercel vercel bot commented on 60eaac6 Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.