0.0.17 • Published 11 months ago

@pea-ai/growth-sdk v0.0.17

Weekly downloads
-
License
GPL
Repository
-
Last release
11 months ago

@pea-ai/growth-sdk

Pea.AI Growth SDK (React)

Live Demo

https://examples-ruddy.vercel.app/

Code Sample

https://github.com/Pea-AI/examples/blob/main/app/page.jsx

Install

NPM

npm install @pea-ai/growth-sdk

Yarn

yarn add @pea-ai/growth-sdk

Usage

import { useState } from 'react'
import { TaskList, Community } from '@pea-ai/growth-sdk'
import '@pea-ai/growth-sdk/dist/style.css'

const Index = () => {
  const [values] = useState({
    questId: '66a1...',
    token: 'eyJh...',
    theme: 'dark',
    handle: 'bevm',
  })

  return (
    <>
      <TaskList questId={values.questId} token={values.token} theme={values.theme} />
      <Community handle={values.handle} theme={values.theme} />
    </>
  )
}