react-top-progress 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,9 +31,10 @@ bun add react-top-progress
|
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
33
33
|
|
|
34
|
-
At the top level of your application (like Next.js `app/layout.
|
|
34
|
+
At the top level of your application (like Next.js `app/layout.jsx` or Vite `src/App.jsx`), render the component.
|
|
35
|
+
Works flawlessly in both **JSX** and **TSX**!
|
|
35
36
|
|
|
36
|
-
```
|
|
37
|
+
```jsx
|
|
37
38
|
import { TopProgress } from "react-top-progress";
|
|
38
39
|
|
|
39
40
|
export default function RootLayout({ children }) {
|
|
@@ -66,7 +67,7 @@ You can trigger the loader from anywhere in your codebase by importing the funct
|
|
|
66
67
|
|
|
67
68
|
### Global Usage Example
|
|
68
69
|
|
|
69
|
-
```
|
|
70
|
+
```jsx
|
|
70
71
|
import {
|
|
71
72
|
startProgress,
|
|
72
73
|
finishProgress,
|