0.0.14 • Published 1 year ago

@canvas-party/react v0.0.14

Weekly downloads
-
License
-
Repository
-
Last release
1 year 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

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

2 years ago