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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. 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.tsx` or Vite `src/App.tsx`), render the component.
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
- ```tsx
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
- ```tsx
70
+ ```jsx
70
71
  import {
71
72
  startProgress,
72
73
  finishProgress,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-top-progress",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A lightweight modern top loading progress bar for React",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",