0.0.25-debug • Published 3 months ago

leverageui v0.0.25-debug

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

leverageUI

To publish, update package.json version and run npm publish

my-react-typescript-package

NPM version Build npm-typescriptLicense]github-license-url

This repo is the example of the article "How to create and publish React Typescript npm package with demo and automated build".

You can clone it and step by step create your own NPM package and publish it.

It is simple React counter.

Live Demo

Installation:

npm install my-react-typescript-package --save-dev

or

yarn add -D my-react-typescript-package

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

3 months ago

0.0.24-debug

3 months ago

0.0.23-debug

3 months ago

0.0.22-debug

3 months ago

0.0.21-debug

3 months ago

0.0.20-debug

3 months ago

0.0.11

3 months ago

0.0.12

3 months ago

0.0.15

3 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

0.0.0

12 months ago