Skip to content

Commit f0d16ad

Browse files
committed
Fix typos + Cleanup
1 parent 91c752b commit f0d16ad

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

README.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Though technically not lifecycle methods, `setState` & `render` are also traced.
2727
2. If `update` is a function instead of an object, `'setState:update fn'` is logged when that function is evaluated.
2828
3. If a `callback` function is provided, `'setState:callback'` is logged when it's called.
2929

30-
To save space, the lifecycle panel only contains `setState`, which gets highlighted for any of the three events above.
30+
To save space, the lifecycle panel only contains `setState`, which gets highlighted on any of the three events above.
3131

3232

3333
## Run the demo locally
@@ -52,7 +52,7 @@ $ npm i react-lifecycle-visualizer
5252

5353
#### Setup
5454

55-
The set up tracing, wrap the root or some other ancestor component in a `<VisualizerProvider>` and include the `<Log/>` component somewhere. For example:
55+
To set up tracing, wrap the root or some other ancestor component in a `<VisualizerProvider>` and include the `<Log/>` component somewhere. For example:
5656

5757
```jsx
5858
import { Log, VisualizerProvider } from 'react-lifecycle-visualizer';
@@ -197,22 +197,3 @@ The only difference is that we cannot use `traceLifecycle` as a decorator in Typ
197197
```tsx
198198
const TracedComponent = traceLifecycle(ComponentToTrace);
199199
```
200-
201-
<!-- ## API
202-
203-
### `VisualizerProvider`
204-
205-
Wrap component tree in this. similar to redux
206-
207-
### `traceLifecycle`
208-
209-
either dec.
210-
211-
212-
### `Log`
213-
214-
### `clearLog`
215-
216-
### `resetInstanceIdCounters`
217-
218-
-->

0 commit comments

Comments
 (0)