Installation
Before you start using OpenAPI Qraft, you need to install the CLI tool to generate the API client. You also need to install the Qraft Client React package to use the generated API client.
- npm
- yarn
- pnpm
npm install -D @openapi-qraft/cli
npm install @openapi-qraft/react
yarn add --dev @openapi-qraft/cli
yarn add @openapi-qraft/react
pnpm add -D @openapi-qraft/cli
pnpm add @openapi-qraft/react
Peer Dependency
If you are not already using TanStack Query v5, you need to install it as well:
- npm
- yarn
- pnpm
npm install @tanstack/react-query
yarn add @tanstack/react-query
pnpm add @tanstack/react-query
Requirements ๐ดโ
OpenAPI Qraft is compatible with React v18+ and works with ReactDOM and React Native. Browser support is consistent with TanStack Query:
Chrome >= 91
Firefox >= 90
Edge >= 91
Safari >= 15
iOS >= 15
Opera >= 77