diff --git a/package.json b/package.json index 80cbbc7..67b8ba3 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "react": "^16.8.6" }, "devDependencies": { + "@types/node": "^12.6.8", "@types/react": "^16.8.23", "typescript": "^3.5.3" } diff --git a/src/index.tsx b/src/index.tsx index 0689ff5..b8731cc 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,17 +2,18 @@ import { Renderer, View, Text, Button, Window } from "@nodegui/react-desktop"; import React, { useState } from "react"; const App = () => { - const [time, setTime] = useState(`${new Date()}`); + const [time, setTime] = useState(new Date()); return (