Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions packages/core/src/hooks/useMap/useMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function useMap(initialState: MapOrEntries<K, V>): UseMapReturn<K, V>;

## Example

````tsx
```tsx
const [userMap, actions] = useMap<string, User>([
['user1', { name: 'John', age: 30 }]
Expand All @@ -38,8 +37,4 @@ const user1 = userMap.get('user1');

// Updating the Map
actions.set('user2', { name: 'Jane', age: 25 });
````

```

```
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ This hook does not return anything.

## Example

````tsx
```tsx
function Modal() {
useBodyScrollLock();
return <div className="modal">Modal content</div>;
}
````

```

```
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ function useNetworkStatus(): NetworkStatus;

## Example

````tsx
```tsxp
```tsx
function AdaptiveImage() {
const { effectiveType, saveData } = useNetworkStatus();

Expand All @@ -42,8 +41,4 @@ function AdaptiveImage() {
/>
);
}
````

```

```
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function usePageVisibility(): PageVisibility;

## Example

````tsx
```tsx
function VideoPlayer() {
const { isVisible } = usePageVisibility();
Expand All @@ -44,8 +43,4 @@ function VideoPlayer() {

return <video ref={videoRef} src="video.mp4" />;
}
````

```

```
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function useScrollDirection(): void;

## Example

````tsx
```tsx
function Header() {
const { direction, position } = useScrollDirection();
Expand All @@ -39,8 +38,4 @@ function Header() {
</header>
);
}
````

```

```
Loading