aimer-preact

1.0.6 • Public • Published

Aimer Preact

Demonstrate your Preact components with Aimer.

Install

yarn add aimer-preact --dev

Usage

import Aimer from 'aimer'
import 'aimer/dist/aimer.css'
import AimerPreact from 'aimer-preact'

// Import the component you wanna demonstrate
import MyButton from './path/to/button'

const aimer = new Aimer({
  // Magic happens here...
  adapter: AimerPreact
})

aimer.add({
  title: 'with text',
  // Use a function that returns a Preact element 
  component: () => <MyButton>Hello World</MyButton>
})

aimer.start()

License

MIT © EGOIST

Readme

Keywords

none

Package Sidebar

Install

npm i aimer-preact

Weekly Downloads

16

Version

1.0.6

License

MIT

Last publish

Collaborators

  • rem