Installation
An installation of Hyper Fetch can be run clean
or for a specific environment. However, we only currently support
React.
info
The main @hyper-fetch/core
package is required for other sub packages to work.
Typescript
TypeScript is used especially when you want to deploy pure Hyper Fetch logic, without an additional layer of abstraction for a specific environment, library, or framework. This gives you access to Hyper Fetch’s base features.
- Npm
- Yarn
npm install --save @hyper-fetch/core
yarn add @hyper-fetch/core
Sockets
Sockets is created for handling websockets or server sent events.
- Npm
- Yarn
npm install --save @hyper-fetch/sockets
yarn add @hyper-fetch/sockets
React
React allows the installation of the base library with hooks, offering interfaces that facilitate library usage and support the application lifecycle.
- Npm
- Yarn
npm install --save @hyper-fetch/core @hyper-fetch/react
yarn add @hyper-fetch/core @hyper-fetch/react
Firebase adapter
- Npm
- Yarn
npm install --save @hyper-fetch/core @hyper-fetch/firebase
yarn add @hyper-fetch/core @hyper-fetch/firebase
GraphQL adapter
- Npm
- Yarn
npm install --save @hyper-fetch/core @hyper-fetch/graphql
yarn add @hyper-fetch/core @hyper-fetch/graphql
Axios adapter
- Npm
- Yarn
npm install --save @hyper-fetch/core @hyper-fetch/axios
yarn add @hyper-fetch/core @hyper-fetch/axios