I'm deprecating one of my old projects: https://github.com/dai-shi/react-hooks-global-state
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
Thanks to azat-io to provide support for #Vitest #React #ReactHooks #JSXA11y and #TestingLibrary ๐
All available now in v1.20.0
https://github.com/Shinigami92/eslint-define-config/releases/tag/1.20.0
#testinglibrary #jsxa11y #reacthooks #react #Vitest
"Using useMemo and useCallback to Save the Past from React Langoliers | by Charles Chen | Feb, 2023 | ITNEXT" https://itnext.io/using-usememo-and-usecallback-to-save-history-from-react-langoliers-8eb7bb72c87 #reactjs #javascript #reacthooks
#reactjs #javascript #reacthooks
Referenced link: https://hackernoon.com/understanding-the-usecontext-hook-for-efficient-state-management-in-react
Discuss on https://discu.eu/q/https://hackernoon.com/understanding-the-usecontext-hook-for-efficient-state-management-in-react
Originally posted by HackerNoon | Learn Any Technology / @hackernoon: http://nitter.platypush.tech/hackernoon/status/1640851327067537409#m
Learn how to efficiently manage state in React applications using the useContext hook. - https://hackernoon.com/understanding-the-usecontext-hook-for-efficient-state-management-in-react #react #reacthooks
Hi Zustand users,
I just opened a discussion about migrating to named exports.
Check it out: https://github.com/pmndrs/zustand/discussions/1506
#ReactJS #Zustand #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #zustand #statemanagement #reacthooks #javascript #typescript
React-Tracked v1.7.11 is released. https://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
#reactjs #statemanagement #reacthooks #javascript #typescript
jotai-location v0.3.2 is released! https://github.com/jotai-labs/jotai-location
It has a util called `atomWithHash` to sync atom value with `location.hash`.
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
Valtio reached 6K stars on GitHub. Thanks for people supporting it!
https://github.com/pmndrs/valtio
Comparing it with Zustand & Jotai. Hm, Something needs to be done to leverage it.
#ReactJS #Valtio #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #valtio #statemanagement #reacthooks #javascript #typescript
Zustand v4.2.0 is released! https://github.com/pmndrs/zustand/releases/tag/v4.2.0
Happy New Year!
#ReactJS #Zustand #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #zustand #statemanagement #reacthooks #javascript #typescript
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: https://codesandbox.io/s/kind-silence-hw8res?file=/src/App.tsx
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
jotai-signal v0.4.0 is released. https://github.com/jotai-labs/jotai-signal
Here's an example with store in Jotai v2 API.
Demo: https://codesandbox.io/s/dreamy-booth-xjn7nm?file=/src/App.tsx
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
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>.
https://github.com/jotai-labs/jotai-uncontrolled
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
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: https://codesandbox.io/s/jotai-approaches-to-without-memo-xdc1rp
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
Jotai atomic updates can eliminate "memo". Which approach do you prefer? Black one or white one?
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
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!
https://github.com/jotai-labs/jotai-signal
I think it's a novel API. Would require a blog post to explain, but for now just check out TODOs example.
https://codesandbox.io/s/github/jotai-labs/jotai-signal/tree/main/examples/04_todos
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
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.
https://codesandbox.io/s/gifted-currying-rll16l?file=/src/App.tsx
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
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.
https://github.com/pmndrs/jotai/discussions/1637
https://github.com/pmndrs/jotai/discussions/1638
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
I can't believe that zustand stars is reaching react-spring! Happy pmndrs
#ReactJS #Zustand #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #zustand #statemanagement #reacthooks #javascript #typescript
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
https://github.com/pmndrs/jotai/discussions/1627
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript
Drawing a diagram to show the relationship among:
- jotai v2 API (pre-release) https://github.com/pmndrs/jotai,
- jotai-jsx https://github.com/jotai-labs/jotai-jsx, and
- use-atom https://github.com/dai-shi/use-atom.
https://excalidraw.com/#json=bN8HuaJT7z_hd9Kdubas9,6aAIScf-vEbp7zLTKHjgXA
#ReactJS #Jotai #StateManagement #ReactHooks #JavaScript #TypeScript
#reactjs #jotai #statemanagement #reacthooks #javascript #typescript