Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using react components #3105

Closed
danny-waite opened this issue Dec 2, 2017 · 3 comments
Closed

using react components #3105

danny-waite opened this issue Dec 2, 2017 · 3 comments
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@danny-waite
Copy link

guys, great project, a newb question, couldn't find the answer after initial search/testing.

Can I make use of regular react components, for example, something like fullpage-react, to provide dynamic functionality rather than having the output static generated?

@Swizec
Copy link
Contributor

Swizec commented Dec 3, 2017

From what I can tell, the frontend is still running React so you can do whatever you want in the browser. I use it in a couple of my projects to add dynamic functionality and responding to click events and such.

You can also see that the React devtools pickup on your site being made in React. I think that proves it's all still there :)

@calcsam
Copy link
Contributor

calcsam commented Dec 3, 2017

Yep! Anything normal React components can do, Gatsby can do using them. Just try plugging a fullpage-react sample component into one of the Gatsby starters (eg the Hello World starter: https://github.com/gatsbyjs/gatsby-starter-hello-world/blob/master/src/pages/index.js) if you want to see how i

@fk fk added the type: question or discussion Issue discussing or asking a question about Gatsby label Dec 4, 2017
@danny-waite
Copy link
Author

thanks guys, yeah that worked, not exactly sure why my previous test didn't, but onwards...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

4 participants