Skip to content

Commit 6ecac8e

Browse files
committed
README: minor consistency tweaks
1 parent 9c0be78 commit 6ecac8e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import useViewportSizes from 'use-viewport-sizes'
3939
function MyComponent(props) {
4040
const [vpWidth, vpHeight] = useViewportSizes();
4141

42-
...renderLogic
42+
// ...renderLogic
4343
}
4444
```
4545

@@ -56,11 +56,10 @@ import useViewportSizes from 'use-viewport-sizes';
5656
function MyComponent(props) {
5757
const [vpHeight] = useViewportSizes({ dimension: 'h' });
5858

59-
...renderLogic
59+
// ...renderLogic
6060
}
6161
```
6262

63-
6463
### **With Throttling**
6564

6665
If passed `options.throttleTimeout`, or options are entered as a `Number`, dimension changes
@@ -124,7 +123,6 @@ function MyBreakpointBehaviorComponent() {
124123
}
125124
```
126125

127-
128126
### **Server Side Rendering**
129127

130128
*Note: While serverside rendering is supported, it requires an explicit update via `useEffect` since viewport does not actually exist on the server before rendering to client. The following has been tested with [NextJS](https://nextjs.org/).*

0 commit comments

Comments
 (0)