aimer-react
v1.0.3
Published
Demonstrate your React components with Aimer.
Downloads
2
Readme
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