Daishi Kato · @daishi
261 followers · 207 posts · Server fosstodon.org

I'm deprecating one of my old projects: github.com/dai-shi/react-hooks

It's one of my React hook libraries I developed in the early days. It's also the reason I joined the development of Zustand. Since v2, it internally uses Zustand. Now, it's marked as "NOT MAINTAINED".

#reactjs #react #javascript #typescript #reacthooks

Last updated 1 year ago

Shini92 :ablobblewobble: · @Shini92
178 followers · 952 posts · Server mas.to

Thanks to azat-io to provide support for and ๐Ÿš€

All available now in v1.20.0

github.com/Shinigami92/eslint-

#testinglibrary #jsxa11y #reacthooks #react #Vitest

Last updated 1 year ago

RJ · @RemeJuan
41 followers · 531 posts · Server fosstodon.org

"Using useMemo and useCallback to Save the Past from React Langoliers | by Charles Chen | Feb, 2023 | ITNEXT" itnext.io/using-usememo-and-us

#reactjs #javascript #reacthooks

Last updated 1 year ago

Hackernoon · @hackernoon_bot
364 followers · 6862 posts · Server social.platypush.tech
Daishi Kato · @daishi
126 followers · 34 posts · Server fosstodon.org

Hi Zustand users,

I just opened a discussion about migrating to named exports.
Check it out: github.com/pmndrs/zustand/disc

#reactjs #zustand #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
126 followers · 34 posts · Server fosstodon.org

React-Tracked v1.7.11 is released. react-tracked.js.org

It's not a state management library, but can be used with useState for state management. It works with Redux and Zustand too.

#reactjs #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
125 followers · 29 posts · Server fosstodon.org

jotai-location v0.3.2 is released! github.com/jotai-labs/jotai-lo

It has a util called `atomWithHash` to sync atom value with `location.hash`.

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
123 followers · 26 posts · Server fosstodon.org

Valtio reached 6K stars on GitHub. Thanks for people supporting it!

github.com/pmndrs/valtio

Comparing it with Zustand & Jotai. Hm, Something needs to be done to leverage it.

#reactjs #valtio #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
123 followers · 25 posts · Server fosstodon.org
Daishi Kato · @daishi
119 followers · 23 posts · Server fosstodon.org

With upcoming Jotai v2, you can read/update atom values outside React. Check out this counter example. This is called v2 API and already pre-released in jotai v1.11.0.

CodeSandbox: codesandbox.io/s/kind-silence-

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
119 followers · 22 posts · Server fosstodon.org
Daishi Kato · @daishi
110 followers · 19 posts · Server fosstodon.org

Just released jotai-uncontrolled v0.4.0 with Jotai v2 API. It no longer depends on React experimental features. This library allows to use string atoms without components re-rendering. Just use <uncontrolled.span> instead of <span>.

github.com/jotai-labs/jotai-un

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
106 followers · 17 posts · Server fosstodon.org

How does Jotai help eliminating useMemo in React? Here's a comparison with simple ToDo example app.

I tried various approaches. Some advanced ones are technically interesting but not so convincing. This is the jotai-basic one. See full code at: codesandbox.io/s/jotai-approac

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
96 followers · 12 posts · Server fosstodon.org

Jotai atomic updates can eliminate "memo". Which approach do you prefer? Black one or white one?

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
86 followers · 11 posts · Server fosstodon.org

jotai-signal v0.3.0 is out! It's originally developed to experiment new "use" hook. However, it turns out the use of "use" is very limited. Thanks to Jotai v2 API, I re-designed jotai oriented signals. It no longer depends on experimental features. Let's make it stable!

github.com/jotai-labs/jotai-si

I think it's a novel API. Would require a blog post to explain, but for now just check out TODOs example.

codesandbox.io/s/github/jotai-

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
60 followers · 10 posts · Server fosstodon.org

There will be a new capability in Jotai v2 API. A derived atom can return an infinite promise. This wasn't possible in Jotai v1. There's a small caveat in usage, but it works mostly as expected.

codesandbox.io/s/gifted-curryi

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
32 followers · 9 posts · Server fosstodon.org

We have some ideas to improve Jotai ecosystem. Unfortunately, I don't have enough time for them. Hence, just opened two discussions to look for project leaders.

github.com/pmndrs/jotai/discus

github.com/pmndrs/jotai/discus

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
32 followers · 9 posts · Server fosstodon.org

I can't believe that zustand stars is reaching react-spring! Happy pmndrs

#reactjs #zustand #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
16 followers · 6 posts · Server fosstodon.org

Hello Jotai users!
I believe the Jotai library is getting better and v2 will be available soonish. Though, I'd admit that docs have room for improvement.
I would like to ask for volunteers who are willing to work on docs.

Call for document contributors

github.com/pmndrs/jotai/discus

#reactjs #jotai #statemanagement #reacthooks #javascript #typescript

Last updated 2 years ago

Daishi Kato · @daishi
16 followers · 7 posts · Server fosstodon.org