eo-ui
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

eo-ui

NPM version Build npm-typescript License

It is simple React counter.

Live Demo

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>,
)

Package Sidebar

Install

npm i eo-ui

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

11.3 kB

Total Files

27

Last publish

Collaborators

  • edwinowen