import Link from 'next/link'; import { Tabs, Tab } from 'nextra-theme-docs'
<Tabs items={['pnpm', 'npm', 'yarn']}>
bash pnpm i floppy-disk
bash npm i floppy-disk
bash yarn add floppy-disk
Compatible with React v16.8+ and works with ReactDOM and React Native.
After the installation finished, we'll get 5 items:
import {
initStore,
createStore,
createStores,
createQuery,
createMutation,
} from 'floppy-disk'
Here is the structure of dependencies of each items:
createMutation
createStore
createQuery
createStores
initStore
The createQuery
function was built on top of createStores
.
So, all the things we can do in createStores
, we can do it on createQuery
too.
Therefore, before jump into query & mutation, it is better to understand how store & stores work.