aimer-react

1.0.3 • Public • Published

Aimer React

Demonstrate your React components with Aimer.

Install

yarn add aimer-react --dev

Usage

import Aimer from 'aimer'
import 'aimer/dist/aimer.css'
import AimerReact from 'aimer-react'

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

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

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

aimer.start()

License

MIT © EGOIST

/aimer-react/

    Package Sidebar

    Install

    npm i aimer-react

    Weekly Downloads

    6

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • rem