File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ yarn add -D react-log-hook
56
56
### Basic usage
57
57
58
58
``` javascript
59
- import {useLog } from ' react-log-hook'
59
+ import { useLog } from ' react-log-hook'
60
60
61
61
const App = () => {
62
62
// Add a logger
63
- const {log } = useLog ()
63
+ const { log } = useLog ()
64
64
65
65
const [state , setState ] = useState (null )
66
66
@@ -74,7 +74,7 @@ const App = () => {
74
74
### Configuration options
75
75
76
76
``` javascript
77
- import {useLog } from ' react-log-hook'
77
+ import { useLog } from ' react-log-hook'
78
78
79
79
const App = () => {
80
80
// Any configuration properties are optional
@@ -121,7 +121,7 @@ const App = () => {
121
121
isGrouped /** Enable grouping for logs */ ,
122
122
isCollapsed /** Render groups collapsed */ ,
123
123
},
124
- }): void {
124
+ }) {
125
125
console .log (value)
126
126
},
127
127
})
@@ -131,7 +131,7 @@ const App = () => {
131
131
// It's possible to redefine any configuration option per log call!
132
132
log (state, {
133
133
inline: false ,
134
- logLevel: ' warn'
134
+ logLevel: ' warn' ,
135
135
})
136
136
137
137
return null
@@ -181,4 +181,4 @@ const App = () => {
181
181
182
182
## License
183
183
184
- [ MIT License] ( LICENSE )
184
+ [ MIT License] ( LICENSE )
You can’t perform that action at this time.
0 commit comments