Files
pools-ui/README.md
ameen soleimani 2e6b647be7 init
2023-03-03 19:06:04 -08:00

1.4 KiB
Raw Permalink Blame History

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: