diff --git a/src/App.js b/src/App.js index 4a6f800f..8003ae3f 100644 --- a/src/App.js +++ b/src/App.js @@ -1,16 +1,19 @@ import React from "react"; import logo from "./logo.png"; import "./App.css"; +import Clock from "../src/Clock"; class App extends React.Component { + Clock; + render() { return (
- Edit src/App.js and save to reload.
-
+ {`${this.props.timeZone}: ${this.state.date.toLocaleString("en-GB", { + timeZone: this.props.timeZone, + })}`} +
+ ); + } +} + +export default Clock;