A sleek digital clock built with React, featuring live time updates, date display, and a modern neon-inspired UI.
Check out the live version here:
- Live clock updates every second
- Displays current day, date, month, and year
- Responsive and modern UI design
- Neon glow effects and hover animations
- Proper cleanup of intervals using React Hooks
- React
- JavaScript (ES6+)
- CSS3
- Vite
- useState
- useEffect
- Component Re-rendering
- setInterval
- Cleanup Functions
- Date Object Manipulation
git clone https://github.com/erleen0307/react-digital-clock.git
cd react-digital-clocknpm installnpm run devOpen the local URL provided by Vite in your browser.
react-digital-clock/
├── public/
├── src/
│ ├── App.jsx
│ ├── App.css
│ └── main.jsx
├── index.html
├── package.json
├── vite.config.js
├── screenshot.png
└── README.md
This project was built to practice React Hooks and understand:
- State management using useState
- Side effects using useEffect
- Mounting and unmounting concepts
- Cleanup functions with clearInterval
- Real-time UI updates through state changes
Made with ❤️ by @erleen0307
