dai-shi / use-atom

Yet another implementation for Jotai atoms without side effects
MIT License
109 stars 0 forks source link

new api to be close to jotai api #20

Closed dai-shi closed 2 years ago

dai-shi commented 2 years ago

fully re-implemented.

codesandbox-ci[bot] commented 2 years ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit db73804dbf6a9b272ab62bab2a0ba6507a7e5c09:

Sandbox Source
React Configuration
React Typescript Configuration
dai-shi commented 2 years ago

Looks like the jotai basic example is working fine.

jotai version: https://githubbox.com/pmndrs/jotai/tree/main/examples/text_length use-atom version: https://codesandbox.io/s/jovial-beaver-klnrm?file=/src/App.tsx