1.0.3 • Published 2 years ago

display-my-counter v1.0.3

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

display-my-counter

Simple React counter component

Instalation

npm i display-my-counter

Usage

Import the component and call it in your app

<Counter />

Override

The counter component accepts a property called CustomComponent. This is a React component that will receive counter value and increment and decrement functions.

const Custom = ({ counter, increment, decrement }) => <p>{counter}</p>;

<Counter CustomComponent={<Custom />} />
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago