Skip to content

Commit c5a0d92

Browse files
refactor: update README.md with improved structure and content
1 parent f2b9f57 commit c5a0d92

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ A React library to capture and display events in a user-friendly interface. This
1414
- [🛠 Usage](#-usage)
1515
- [Basic Setup](#basic-setup)
1616
- [📝 Capturing Events](#-capturing-events)
17-
- [📊 Possible Use Cases](#-possible-use-cases)
1817
- [🗑 Clearing Events](#-clearing-events)
18+
- [📊 Possible Use Cases](#-possible-use-cases)
1919
- [📚 Examples](#-examples)
2020
- [Basic Example](#basic-example)
2121
- [Advanced Example](#advanced-example)
@@ -111,6 +111,16 @@ navigator.serviceWorker.controller.postMessage({
111111
})
112112
```
113113

114+
## 🗑 Clearing Events
115+
116+
To clear all captured events, send a `CLEAR_EVENTS` message to the service worker:
117+
118+
```javascript
119+
navigator.serviceWorker.controller.postMessage({
120+
type: 'CLEAR_EVENTS',
121+
})
122+
```
123+
114124
## 📊 Possible Use Cases
115125

116126
The React Capture Events library can be applied in various scenarios where capturing, visualizing, and managing events is required. The implementation of these use cases should be done in conjunction with appropriate tools and workflows to handle specific requirements, such as logging, analysis, or integration with other systems. Below are some potential use cases:
@@ -136,16 +146,6 @@ The React Capture Events library can be applied in various scenarios where captu
136146
7. **Educational Applications**
137147
Track user progress and interactions on educational platforms to provide personalized learning experiences and feedback to learners.
138148

139-
## 🗑 Clearing Events
140-
141-
To clear all captured events, send a `CLEAR_EVENTS` message to the service worker:
142-
143-
```javascript
144-
navigator.serviceWorker.controller.postMessage({
145-
type: 'CLEAR_EVENTS',
146-
})
147-
```
148-
149149
## 📚 Examples
150150

151151
### Basic Example

0 commit comments

Comments
 (0)