Package Exports
- eo-ui
- eo-ui/dist/cjs/index.js
- eo-ui/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eo-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eo-ui
It is simple React counter.
Installation:
npm install eo-ui --save-devor
yarn add -D eo-uiUsage :
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>,
)