Skip to content

Instantly share code, notes, and snippets.

View AmirNouri2011's full-sized avatar

Amir AmirNouri2011

View GitHub Profile
@inorganik
inorganik / app.js
Last active September 9, 2025 15:42
Using CountUp.js in React
import { useEffect, useRef } from 'react'
// playground: https://stackblitz.com/edit/react-ts-nv5fxe?file=App.tsx
export default function App() {
// create a ref and declare an instance for each countUp animation
const countupRef = useRef(null);
let countUpAnim;