vuex-but-for-react is a lightweight global state management solution for React, heavily resembling vuex in its implementation. It's dependent on React, using the Context API and useSyncExternalStore under the hood.

Yarn

yarn add vuex-but-for-react

NPM

npm install vuex-but-for-react --save

The usage, as the name suggests, is very similar to Vue's vuex, following the single state tree philosophy and using vuex's store structure and naming.

vuex-but-for-react on GitHub