From 8e4fd48b90924fd590565893f678c6f2f2f15f5d Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Thu, 1 Aug 2019 02:22:20 +0900 Subject: [PATCH] style: animated header --- web/src/App.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/web/src/App.js b/web/src/App.js index fbc0f72..c1afec3 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -25,18 +25,20 @@ export default function App() { setQuery(e.target.value) } + const queryGiven = query && query.length > 0 + return ( <> -
+
namæ
- {query && query.length > 0 ? ( + {queryGiven && ( Result for {query} @@ -53,7 +55,7 @@ export default function App() { - ) : null} + )}