Skip to content

Commit

Permalink
Add @vercel/analytics dependency and integration
Browse files Browse the repository at this point in the history
  • Loading branch information
zerone0x committed Sep 25, 2024
1 parent 031b6af commit faaaef2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"preview": "vite preview"
},
"dependencies": {
"@vercel/analytics": "^1.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand Down
1 change: 1 addition & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import "./App.css";
import RandomYouTubePlayer from "./components/RandomYouTubePlayer";
import { useState } from "react";


function App() {
const [channel, setChannel] = useState("curb");

Expand Down
2 changes: 2 additions & 0 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import { Analytics } from "@vercel/analytics/react"

ReactDOM.render(
<React.StrictMode>
<App />
<Analytics/>
</React.StrictMode>,
document.getElementById("root"),
);

0 comments on commit faaaef2

Please sign in to comment.