Skip to main content

Installation

Prerequisites

Before installing Zustand Q, ensure you have the following:

  • Node.js: Version 14 or higher.
  • React: Version 16.8.0 or higher. Works with both React and React Native projects.

Install Zustand Q

Install Zustand Q via npm or Yarn:

npm install zustand-q

or

yarn add zustand-q

This will also install zustand (version 5.0.3 or higher) as a dependency automatically.

Optional Dependencies

If your project involves HTTP requests (e.g., as shown in the examples), you may want to install axios:

npm install axios

or

yarn add axios

Note for TypeScript Users

Zustand Q is built with TypeScript and provides type definitions out of the box. Ensure your project has TypeScript installed (npm install typescript) and a tsconfig.json file configured if you want to leverage its type safety features.