Skip to content

Commit

Permalink
fix (#22021)
Browse files Browse the repository at this point in the history
  • Loading branch information
muescha committed Mar 6, 2020
1 parent ab71779 commit 5542a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/profiling-site-performance-with-react-profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The react profiler component can be used anywhere in a react tree to measure the

### Profiling a slow component

```js
```jsx
import * as React from "react"
import { Profiler } from "react"

Expand All @@ -44,7 +44,7 @@ export const MyComponent = props => (

Capturing page performance can be achieved by using the [wrapPageElement API](/docs/browser-apis/#wrapPageElement) to profile each page.

```js
```jsx
//gatsby-browser.js

import * as React from "react"
Expand Down

0 comments on commit 5542a66

Please sign in to comment.