0.0.9 • Published 1 year ago

talroc-react-library v0.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

talroc-react-library

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 talroc-react-library --save-dev

or

yarn add -D talroc-react-library

Usage :

Add MyCounter to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { Button } from 'talroc-react-library'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <React.StrictMode>
        <div>
            <h2>Default counter</h2>
            <Button label="Talroc" />
        </div>
    </React.StrictMode>,
)
0.0.9

1 year ago

0.0.8

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago