1502shivam-singh commented on a change in pull request #414:
URL: https://github.com/apache/apisix-website/pull/414#discussion_r670487447



##########
File path: website/src/pages/index.js
##########
@@ -261,22 +261,23 @@ const NewsletterSection = () => {
 const PicPoster = () => {
   const [display, setDisplay] = useState(true);
   const [theme, setTheme] = useState('light');
+  const windowGlobal = typeof window !== 'undefined' && window

Review comment:
       I guess one solution could be to use useRef hook and put it on the 
button, then target event of click inside useEffect. Like classic 
ref.current.addEventListener()




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to