Skip to content

Does React not work with js Set:s (the datatype)?

I’m trying to use the js Set datastructure with React but it will not update like I thought it would. Consider the following two two examples. Buttons are supposed to go green when pressed. The first one with a Set (NOT WORKING) And the same example but with an array instead (WORKING) Answer React decid…

Discord.js error message on deleting Bot message

So basically I am lately always getting the following Error when I delete a message that my Bot sends. The message is not being used by the Bot anymore, but for some reason, it always crashes after deletion. Here is the Code for the command where it always has the problems with: As you see I never actually wa…

loading different values into select angular

Hi I have a problem with loading data from localStorage into a select component. I would like each select after selecting different options to be saved in localStorage and after refreshing the page, the value from the select will be remembered, currently the last option is remembered and loaded to all app.com…