0.0.14 • Published 3 years ago

@canvas-party/react v0.0.14

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

CanvasParty with React

To add canvasParty element to your React application first install the @canvas-party/react package.

To get started run this command in the terminal at your project root

$ npm install @canvas-party/react

Then import the CanvasParty component and give it the desired template type

import { useState } from 'react'
import CanvasParty from '@canvas-party/react'

function reactApp() {
const [canvasType, setCanvasType] = useState('confetti')

    return (
        <button onClick={() => setCanvasType('trippy')}></button>
        <CanvasParty type={canvasType} />
    )
}

export default reactApp
0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago