Skip to content

Commit

Permalink
docs(fix): comment block
Browse files Browse the repository at this point in the history
  • Loading branch information
vladzima committed Oct 26, 2024
1 parent 6b97799 commit 6ce3987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Whether you're building a highly interactive web application or an e-commerce si
1. Install library with `npm i react-pd` or `yarn add react-pd`
2. Use the `PerformanceProvider` and `usePerformance` Hook in your app

### Example:
Example:
```tsx
import React from 'react';
import { PerformanceProvider, usePerformance } from 'react-performance-detector';
Expand All @@ -44,7 +44,7 @@ const MyComponent: React.FC = () => {
const App: React.FC = () => {
return (
<PerformanceProvider>
// Wrap your components with the PerformanceProvider to enable performance monitoring throughout the app or a specific section of it
{/* Wrap your components with the PerformanceProvider to enable performance monitoring throughout the app or a specific section of it */}
<MyComponent />
</PerformanceProvider>
);
Expand Down

0 comments on commit 6ce3987

Please sign in to comment.