Refactor React-tsparticles to take children instead of working with classNames and Wrappers
See original GitHub issueRefactor 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:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Stale issue message