Skip to content

Commit 32847ec

Browse files
authored
Update README formatting (#2)
1 parent 10e4cee commit 32847ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ yarn add -D react-log-hook
5656
### Basic usage
5757

5858
```javascript
59-
import {useLog} from 'react-log-hook'
59+
import { useLog } from 'react-log-hook'
6060

6161
const App = () => {
6262
// Add a logger
63-
const {log} = useLog()
63+
const { log } = useLog()
6464

6565
const [state, setState] = useState(null)
6666

@@ -74,7 +74,7 @@ const App = () => {
7474
### Configuration options
7575

7676
```javascript
77-
import {useLog} from 'react-log-hook'
77+
import { useLog } from 'react-log-hook'
7878

7979
const App = () => {
8080
// Any configuration properties are optional
@@ -121,7 +121,7 @@ const App = () => {
121121
isGrouped /** Enable grouping for logs */,
122122
isCollapsed /** Render groups collapsed */,
123123
},
124-
}): void {
124+
}) {
125125
console.log(value)
126126
},
127127
})
@@ -131,7 +131,7 @@ const App = () => {
131131
// It's possible to redefine any configuration option per log call!
132132
log(state, {
133133
inline: false,
134-
logLevel: 'warn'
134+
logLevel: 'warn',
135135
})
136136

137137
return null
@@ -181,4 +181,4 @@ const App = () => {
181181
182182
## License
183183

184-
[MIT License](LICENSE)
184+
[MIT License](LICENSE)

0 commit comments

Comments
 (0)