menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Gatsby

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

create class component for the {pageContext}

June 28, 2020 at 8:57pm

create class component for the {pageContext}

June 28, 2020 at 8:57pm
Hello team,
Can you help me out how to create class component for the out put from gatsby-node.js graphql query

June 29, 2020 at 7:09am
Very little to go on here
yeah, I am a beginner so unable to pass data from functional component to class component .. I am building cart functionality

June 29, 2020 at 4:57pm
Are you able to share the code, and give any more context?

June 30, 2020 at 9:22am
sorry I am unable to share code

June 30, 2020 at 4:27pm
Can you share an example repo? Or some example code for your trouble area?

July 3, 2020 at 6:27am
Thanks Jeremy I have sorted out this and used staticquery in class component .. Thanks your your time and replies