eo-ui
v0.1.5
Published
eo-ui component-library
Downloads
4
Maintainers
Readme
eo-ui
It is simple React counter.
Installation:
npm install eo-ui --save-dev
or
yarn add -D eo-ui
Usage :
Add MyCounter
to your component:
import React from 'react'
import ReactDOM from 'react-dom/client'
import { MyCounter } from 'my-react-typescript-package'
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
<React.StrictMode>
<div>
<h2>Default counter</h2>
<MyCounter />
</div>
<hr />
<div>
<h2>Counter with predefined value</h2>
<MyCounter value={5} />
</div>
</React.StrictMode>,
)