0.0.2 • Published 12 months ago

first-react-component-liadvasd v0.0.2

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

first-react-component-liadvasd

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

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 first-react-component-liadvasd --save-dev

or

yarn add -D first-react-component-liadvasd

Usage :

Add MyCounter to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { MyCounter } from 'first-react-component-liadvasd'

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.2

12 months ago

0.0.1

12 months ago