question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gatsby + Particles

See original GitHub issue

Hi, I am trying to run the simple possible example of Particles with Gatsby, and It seems to not work for any combination. My index file looks like:

import React from "react"
import Particles from 'react-particles-js';


export default () => (
    <div>
        <Particles/>
    </div>
);

I can see that the canvas is added into DOM, but nothing is shown. Is it a correct approach?

React version: 16.2.0 Gatsby version: 1.9.207 Particle version: 2.1.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
lindelofcommented, Nov 30, 2019

Of course you can also use this library https://github.com/lindelof/particles-bg

4reactions
RobertoMSousacommented, May 31, 2018

It’s working here, check my repo to see how I did it. https://github.com/RobertoMSousa/gatsbyjs_hello_world

Read more comments on GitHub >

github_iconTop Results From Across the Web

tsparticles-gatsby-landing-page-starter - npm
tsParticles is a lightweight library for easily creating particles animations in your websites or web applications. The tsParticles library is ...
Read more >
javascript - Using ParticleJS with Gatsby - Stack Overflow
I start with fetching npm install react-particles-js . I started with a very simple example : import React from "react" import Particles ......
Read more >
Gatsby + Particles · Issue #23 · wufe/react-particles-js - GitHub
Hi, I am trying to run the simple possible example of Particles with Gatsby, and It seems to not work for any combination....
Read more >
Particle - Gatsby
Particle is a fully-integrated IoT platform that offers everything you need to deploy an IoT product. ... community and Gatsby, the company.
Read more >
tsparticles-gatsby-landing-page-starter - npm package - Snyk
tsParticles is a lightweight library for easily creating particles animations in your websites or web applications. The tsParticles library is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found