Passing onClick function to add class?
Hey I'm used to creating the old style JS adding a class to say a button click to animate in a navigational menu - how is this done in react? I am so lost - some people say I should be using the useState command and others say I pass a prop from the navbar down to the child…
Web Push notifications with Gatsby
I have looked everywhere reasonably but unable to find how I can edit my service worker file to handle browser push notification properly. Is there a plugin for it? Are there ideas or patterns around it? I see Gatsby as my go to solution for a website/webapp today, however, this…
Headless CMSs for your Gatsby projects
We've had an overwhelming response to our headless CMS review post. The dev team that did the heavy lifting (writing) 👏 and I'm pretty stoked to share a mammoth post we made collectively about the headless CMSs. When to use a certain CMS? User interface. Top features. Support.…
Scripts in Gatsby
Hey guys I was wondering how can I add a script to gatsby for say pre-optimizing images like in this doc: https://www.gatsbyjs.org/docs/preoptimizing-images/ Is there any configuration to do other than creating scripts folder on root and put the file inside?