1.0.3 • Published 1 year ago

display-my-counter v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago