Skip to content

Latest commit

 

History

History
62 lines (52 loc) · 1.79 KB

getting-started.mdx

File metadata and controls

62 lines (52 loc) · 1.79 KB

import Link from 'next/link'; import { Tabs, Tab } from 'nextra-theme-docs'

Getting Started

Installation

<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.

Ingredients

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.