From 13bf41a3c5cd399a7d31ccff12963cb493c6fc09 Mon Sep 17 00:00:00 2001 From: Maciej Olejnik Date: Mon, 11 Apr 2022 02:18:39 +0200 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 444084f..2f95d93 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ## Install ```bash -npm install --save @bit-about/event +npm i @bit-about/event ``` ## Features From 5d8dc54f20a79f20ceb42811d89aed63178f56a8 Mon Sep 17 00:00:00 2001 From: Maciej Olejnik Date: Mon, 11 Apr 2022 02:20:03 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2f95d93..3174cb9 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ const App = () => ( ```jsx const Button = () => { - const dispatchEvent = useEvent() + const dispatch = useEvent() - const onButtonClick = () => dispatchEvent('buttonClicked', 'Hello') + const onButtonClick = () => dispatch('buttonClicked', 'Hello') return } From c3cefddd8043f12eb7d1886358610bfbe5abdc92 Mon Sep 17 00:00:00 2001 From: Maciej Olejnik Date: Mon, 11 Apr 2022 02:21:49 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3174cb9..3d0b6d8 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,9 @@ const App = () => ( const Button = () => { const dispatch = useEvent() - const onButtonClick = () => dispatch('buttonClicked', 'Hello') + const onClick = () => dispatch('buttonClicked', 'Hello') - return + return } ``` From 03345bb88cd15b389ae1276eda370c000814de6e Mon Sep 17 00:00:00 2001 From: Maciej Olejnik Date: Mon, 11 Apr 2022 02:22:24 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d0b6d8..69d7cfe 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ npm i @bit-about/event - Efficient and hook-based - ...with static listener and dispatcher - No centralized event provider -- Tiny - only **2kB** +- Tiny - only **1.6kB** - **Just works** ™ ## Usage