klyva icon indicating copy to clipboard operation
klyva copied to clipboard

README.md suggestions

Open godspeedelbow opened this issue 4 years ago • 1 comments

Some things that came up when trying out Klyva:

  • make optics part of the Klyva tagline. it's the thing that really sets this lib apart from all others. good to communicate that from the start.

  • considering optics is such a big thing in this library, I think it would be great to give some practical examples.

  • start examples with import statement, e.g.

import {atom} from 'klyva'

const countAtom = atom(5)
  • I know it's written in the docs but I still didn't parse it completely when I read it: it's if you want your component to update when an atom changes, you gotta use the useAtom or useSelector hook in that component.

godspeedelbow avatar Feb 03 '21 13:02 godspeedelbow

Hey Eelke, thanks for the issue :)

I agree 100%, currently thinking about how this will be done.

merisbahti avatar Feb 07 '21 13:02 merisbahti