Skip to content

Tag: reactjs

three.js over cdn using svelte or react

Is there any way of building my svelte or react application in a way, that the three.js module (which I usually import using npm) will be declared as a script tag which will call the module from a CDN? I would like to keep the advantages of a framework but also be able to reduce my final bundle size, since

Comparing color strings in typescript

I am trying to compare the following color strings with each other, i am using localeCompare for this and here we have the following colors: ‘yellow’, ‘green’, ‘white’ and transparent. These are saved in the variable ‘status’ as shown below. How can i compare th…