Got the Particles JS to work. Someone built a react version called react-particles-js which lets you easily integrate it into React as a component.
Tried using the original particlesJS package, but the load function particlesJS.load() was not working properly. I was importing it like “import particlesJS from ‘particles.js’ “, but I don’t think that was working properly. Have had similar issues before importing libraries into react. I could post it as questions on Stackoverflow and see if I get any answers.
Now can integrate the particlesJS into my actual landing page.