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.

Refactor React-tsparticles to take children instead of working with classNames and Wrappers

See original GitHub issue

Refactor React-tsparticles so that all we need to do is wrap it around our app or component where we need the particles, so basically let it have children, this way all the unnecessary stuff like biding to canvas/wrapper/class is automatically handled for us.

Also, I think it is time to move to hooks, I see that the component is unnecessary complicated because it is made with Class components.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
issue-label-bot[bot]commented, Oct 14, 2020

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.92. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
github-actions[bot]commented, Dec 16, 2020

Stale issue message

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to refactor React components to use Hooks
Refactoring your existing application or components to use React Hooks comes with its own unique set of challenges. In this article, we'll ...
Read more >
react-tsparticles - npm
Official tsParticles React Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds ...
Read more >
react-flip-toolkit - npm Package Health Analysis - Snyk
Configurable FLIP animation helpers for React For more information about how to use this package see README · Ensure you're using the healthiest...
Read more >
How can I set react-particles-js as the background while using ...
Here is the code I have so far: import React from "react"; import { BrowserRouter as Router ...
Read more >
tsparticles | Easily create highly customizable particles , confetti
tsParticles - Easily create highly customizable particles, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use...
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