diff --git a/src/App.jsx b/src/App.jsx index 9d138e2..d193ff6 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,4 +1,6 @@ +import React, { useState, useEffect } from "react"; import logo from "/logo.png"; +import Clock from "./Clock"; import "./App.css"; function App() { @@ -12,6 +14,12 @@ function App() {
Edit src/App.jsx and save to test HMR
+
Timezone: Asia/Singapore
+Timezone: Europe/London
+{date.toLocaleString("en-GB", { timeZone: props.timeZone })}
+ > + ); +} +export default Clock;