From fe87fd2259a24e671345e8cb7efc595d600c06f7 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Fri, 13 Sep 2019 12:26:25 +0200 Subject: [PATCH] test: Add hooks usage --- pages/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/index.js b/pages/index.js index 7da9c58..0a119dc 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,4 +1,10 @@ +import React from "react"; + function Home() { + React.useEffect(() => { + console.log("committed"); + }); + return
Welcome to Next.js!
; }