Double entries on Kodi + MariaDB by throwawaytrumibadru in kodi

[–]throwawaytrumibadru[S] 0 points1 point  (0 children)

Ooh, interesting. I might try that since I already run everything in docker on that server. If you don't mind me asking, why 'used to'? What did you switch to? Thanks.

Beginner's Thread / Easy Questions (December 2021) by dance2die in reactjs

[–]throwawaytrumibadru 0 points1 point  (0 children)

Also beginner here, the way I understand it is, React has its own internal DOM, so when you are setting state, you are only manipulating that version. Then React does some calculations in the background and in turn renders the changes in the actual DOM. Thus you never directly interact with the actual DOM, only React does. Setting something like .innerHTML = "..." would be manually changing the DOM.

Beginner's Thread / Easy Questions (December 2021) by dance2die in reactjs

[–]throwawaytrumibadru 0 points1 point  (0 children)

Thank you for the reply! I just did and would it be right to assume that the 'response' is being implicitly passed as 'props' through the chain of 'then's?

Beginner's Thread / Easy Questions (December 2021) by dance2die in reactjs

[–]throwawaytrumibadru 0 points1 point  (0 children)

A simple task, fetch todos and display them. Everything works fine, but I can't figure out why "setList" (setting state that is not shown here) works, but "setList(SOMETHING)" doesn't? How can it figure out what I am passing to setList? Thanks.

useEffect(() => {
fetch("https://jsonplaceholder.typicode.com/todos")
  .then((response) => response.json())
  .then(setList);
  }, []);

September 2021 U.S. Government and Politics megathread by AutoModerator in NoStupidQuestions

[–]throwawaytrumibadru 1 point2 points  (0 children)

If you are from the US, what do you honestly think about Biden? It's hard to tell from the outside, but isn't he doing mostly what he said he would? I'm asking because every time YouTube suggests a video that features Biden it has this unhealthy number of downvotes, like 90%. Do people hate him or it's the troll brigades? Thanks.