Skip to content

ameensol/pools-ui

Repository files navigation

State Management

jotai atom:

  • has default value matching shape of typed object

hooks:

  • check for default value, then
    • populate state via queries or calculations
  • returns direct values

components:

  • retrieving state from hook now initializes it
  • can still modify state using the jotai atom

This is a wagmi + RainbowKit + Next.js project bootstrapped with create-wagmi

Getting Started

Run npm run dev in your terminal, and then open localhost:3000 in your browser.

Once the webpage has loaded, changes made to files inside the src/ directory (e.g. src/pages/index.tsx) will automatically update the webpage.

Learn more

To learn more about Next.js or wagmi, check out the following resources: