How to use the recoil.atom function in recoil

To help you get started, we’ve selected a few recoil examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github c-bata / goptuna / dashboard / src / state.ts View on Github external
import { atom } from "recoil"

export const studySummariesState = atom({
  key: "studySummaries",
  default: [],
})

export const studyDetailsState = atom({
  key: "studyDetails",
  default: {},
})
github c-bata / goptuna / dashboard / src / state.ts View on Github external
import { atom } from "recoil"

export const studySummariesState = atom({
  key: "studySummaries",
  default: [],
})

export const studyDetailsState = atom({
  key: "studyDetails",
  default: {},
})

recoil

Recoil - A state management library for React

MIT
Latest version published 1 year ago

Package Health Score

77 / 100
Full package analysis