1.1.1 • Published 2 years ago

bit-react-npm-publish v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

bit-react-npm-publish

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(https://asadul44.github.io/react-npm-publish /)

Installation:

npm install bit-react-npm-publish
 --save-dev

or

yarn add -D bit-react-npm-publish

Usage :

Add MyCounter to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { MyCounter, getHotels } from 'bit-react-npm-publish'

const MyApp = (id) => {
  const data = getHotels(id)

  return (
    <div>
      <MyCounter />
    </div>
  )
}

export default MyApp