Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
serikshaikamalov committed Jul 3, 2024
1 parent 2553884 commit cb81320
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,16 @@ In this example:

## How to deal with dark/light mode

## EventTarget as a global storage
## EventTarget

Demo: [BasketStorage](https://serikshaikamalov.github.io/lit-components/examples/basket/index.html)

Why to use it?
When to use it?

- A way of communication between components
- Source of the truth
- Implement subscriber/listener pattern
- Global storage

Usage

Expand Down

0 comments on commit cb81320

Please sign in to comment.