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

1.0.1 • Public • Published

ui-library

NPM version Build npm-typescript License

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 cosaft-ui-library --save-dev

or

yarn add -D cosaft-ui-library

Usage :

Add MyCounter to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { Test } from 'cosaft-ui-library'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <React.StrictMode>
        <Test />
    </React.StrictMode>,
)

Readme

Keywords

Package Sidebar

Install

npm i cosaft-ui-library

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6.09 kB

Total Files

21

Last publish

Collaborators

  • cosmin220304