Skip to main content

Installation

还没翻译译自英文(tanstack.com)本页 18 段都还没译

You can install TanStack Store with any NPM package manager.

React

npm install @tanstack/react-store

TanStack Store is compatible with React v16.8+ and is currently only compatible with ReactDOM only. If you would like to contribute to the React Native adapter, please reach out to us on Discord.

Preact

npm install @tanstack/preact-store

TanStack Store is compatible with Preact 10+.

Vue

npm install @tanstack/vue-store

TanStack Store is compatible with Vue 2 and 3.

Angular

npm install @tanstack/angular-store

TanStack Store is compatible with Angular 19+

SolidJS

npm install @tanstack/solid-store

TanStack Store is compatible with Solid and SolidStart.

Svelte

npm install @tanstack/svelte-store

TanStack Store is compatible with Svelte 5.

Lit

npm install @tanstack/lit-store

TanStack Store is compatible with Lit 3.

Octane

npm install @tanstack/octane-store

TanStack Store is compatible with Octane 0.1.21.