Skip to content

World Clock project brandon#14

Open
RedeyeXDX wants to merge 2 commits intorocketacademy:mainfrom
RedeyeXDX:main
Open

World Clock project brandon#14
RedeyeXDX wants to merge 2 commits intorocketacademy:mainfrom
RedeyeXDX:main

Conversation

@RedeyeXDX
Copy link

No description provided.

src/App.jsx Outdated
Comment on lines 14 to 16
<Clock city="Singapore" timeZone="Singapore"/>
<Clock city="Japan" timeZone="Japan"/>
<Clock city="Los Angeles" timeZone="America/Los_Angeles"/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By using an array of objects with city and timeZone keys, we could run a single map and don't need to repeat the Clock component over and over, and are able to easily extend our application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants