ink-component
v0.0.1
Published
An example package for publish react component to NPM
Downloads
2
Maintainers
Readme
Getting Started
npm install ink-component / yarn add ink-component
Quick Start
...
import { Button } from 'ink-component'
...
function App() {
return (
...
<Button title="Click Me!" />
...
)
}
Button Props
| Name | Type | Default | Required | | ------------- |:-------------:| --------:|----------:| | title | string | - | yes | | type | string | 'button' | no | | onClick | func | () => {} | no |
Notes
- Compatible with Create React App
- Compatible with Next.js (already tested on next.js version 10.0.1)