Skip to content

Commit 5160dac

Browse files
committed
Fix readme: shouldTraceToConsole ~> traceToConsole
1 parent 6567fc0 commit 5160dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-hook-tracer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ You may want to temporarily disable [React strict mode](https://reactjs.org/docs
155155
To enable tracing to the browser console, leave out the `TraceLog` component, or call `setTracerConfig` anywhere in your project:
156156

157157
```ts
158-
setTracerConfig({ shouldTraceToConsole: true })
158+
setTracerConfig({ traceToConsole: true })
159159
```
160160

161161
Instead of a string representation, console traces show the actual object values for props, state, and refs, which means they can be expanded to inspect properties:

0 commit comments

Comments
 (0)