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
5656### Basic usage
5757
5858``` javascript
59- import {useLog } from ' react-log-hook'
59+ import { useLog } from ' react-log-hook'
6060
6161const 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
7979const 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 )
You can’t perform that action at this time.
0 commit comments