Skip to content

Commit 77948ec

Browse files
committed
Update README.md
1 parent 22a0347 commit 77948ec

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ This package provides you with:
2222

2323
This allows you to know the size of each observed element.
2424

25-
# 🚧 Developer status
26-
27-
Several projects within Envato are currently using this package, giving me confidence that the API is clear and the code adds value. The package is still in an early stage, but exposure to "the wild" will help reveal more edge-cases and hopefully make the package more robust overall.
28-
2925
# 📚 Docs
3026

3127
This package was developed **and documented** as part of the [`@envato/react-breakpoints`](https://github.com/envato/react-breakpoints) package. It's separated into its own package because I believe it can be used separately if you don't need all the abstractions that React Breakpoints gives you. Please refer to the [React Breakpoints API Docs](https://github.com/envato/react-breakpoints/docs/api.md) for more details about `<Provider>` and `useResizeObserver()`.
@@ -38,7 +34,7 @@ npm install @envato/react-resize-observer-hook
3834

3935
## Set up the provider
4036

41-
```javascript
37+
```jsx
4238
import { Provider as ResizeObserverProvider } from '@envato/react-resize-observer-hook';
4339

4440
const App = () => <ResizeObserverProvider>...</ResizeObserverProvider>;
@@ -48,7 +44,7 @@ const App = () => <ResizeObserverProvider>...</ResizeObserverProvider>;
4844

4945
## Observe an element
5046

51-
```javascript
47+
```jsx
5248
import { useResizeObserver } from '@envato/react-resize-observer-hook';
5349

5450
const ObservedDiv = () => {

0 commit comments

Comments
 (0)