menu

Gatsby.js

Fast in every way that matters. Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps.

Channels
Team
Posts
Members
Info

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…

thumbsup
0
message-simple
3

Serving gatsby website on path

I'm having trouble serving a gatsbyjs website on a domain subpath. My main website is served on www.example.com I want the gatsbyjs website served at www.example.com/articles …

thumbsup
0
message-simple
8

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…

thumbsup
6
message-simple
22

.env.development in package.json not working.

i install env-cmd in my project and add this code in package json "develop": "env-cmd -f .env.development gatsby develop", this is the error: Failed at the gatsby-starter-hello-world@0.1.0 develop script. …

thumbsup
0
message-simple
6

it sudden not working the gatsby develop

ERROR UNHANDLED REJECTION Reducers may not dispatch actions. Error: Reducers may not dispatch actions. …

thumbsup
0
message-simple
0

I need help building modal

Please can someone help me on how to achieve this modal on Gatsby, am as well using React-boostrap. And way to refractor the images

thumbsup
0
message-simple
20

It it possible to use react hooks inside gatsby-browser.js?

thumbsup
0
message-simple
6

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.…

thumbsup
3
message-simple
1

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?

thumbsup
0
message-simple
8

Help: using createPage() and createFilePath() - multiple use of field 'slug'

Hi I have a DatoCMS instance which I'm using to create some pages on my GatsbyJS site. Some other pages are locally-sourced MDX pages. For the CMS I'm using createPage(): …

thumbsup
0
message-simple
1