Skip to content

simple clock display time using react. Clock1 is a class component and Clock2 is a function component using hooks

Notifications You must be signed in to change notification settings

danielleye/simple-react-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple clock component using react

Intro

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.

start

npm i
npm start

browser will open the page with port 3000

Note

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.

About

simple clock display time using react. Clock1 is a class component and Clock2 is a function component using hooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published