Skip to content

Commit

Permalink
docs: fix doc layout and add web working issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanyi-chou committed Nov 18, 2024
1 parent a443a08 commit 73db834
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-page-tracker",
"version": "0.2.0",
"version": "0.2.1",
"description": "A lightweight, zero-dependency library providing accurate navigation tracking, fixed document.referrer value, and complete history support for React frameworks.",
"scripts": {
"dev": "vite",
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
`react-page-tracker` is a lightweight, zero-dependency library providing accurate navigation tracking, fixed
`document.referrer` value, and complete history support for React frameworks. Fully compatible with Next.js, Remix, TanStack Query, and React Router.

(🚧 Currently encounters DNS issue, still working on it. 🚧 )
👉 [Demo](https://react-page-tracker.typeart.cc/demo)

📖 [Documentation](https://react-page-tracker.typeart.cc)
Expand Down Expand Up @@ -61,8 +62,11 @@ Simply to get the values you need in any component.
```bash
npm install react-page-tracker
```

<details><summary>▲ Next.js</summary>

`layout.tsx`

```diff
+ import { PageTracker } from 'react-page-tracker';
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode; }>) {
Expand Down

0 comments on commit 73db834

Please sign in to comment.