You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constApp=()=>{const[init,setInit]=useState(false);// this should be run only once per application lifetime useEffect(()=>{initParticlesEngine(async(engine)=>{// you can initiate the tsParticles instance (engine) here, adding custom shapes or presets // this loads the tsparticles package bundle, it's the easiest method for getting everything ready // starting from v2 you can add only the features you need reducing the bundle size awaitloadAll(engine);//await loadFull(engine); //await loadSlim(engine); //await loadBasic(engine); }).then(()=>{setInit(true);});},[])};constparticlesLoaded=async(container?: Container): Promise<void>=>{console.log(container);};
I am using the following code:
for the imports
for the init,
and:
for the particles, my config is in /public/particles.json. The particles seem to be initializing, but there are no errors, or particles.
The text was updated successfully, but these errors were encountered: