This repository is a clock component for displaying time. ClockUsingClass.js is written with class component and ClockUsingHooks.js is written with function component with hooks.
npm i
npm start
browser will open the page with port 3000
In App.js, you can choose which clock is enabled by command out the other one since two setInterval on the same page may cause issues.