#reactjs
Read more stories on Hashnode
Articles with this tag
const wait = function (second) { return new Promise(function (resolve) { setTimeout(resolve("WHo??"), second * 1000); }); }; wait(1) ...
question by botplayer : WHy we should never update the state in the render logic (example like data fetching)? Answer: IT causes infinite...
In React’s older class-based components, the render() method is essential. It’s the only method you must include, and it’s responsible for displaying...
The infamous "double undefined" issue! This is a common gotcha in React, and it's not specific to your code. It's related to how React handles the...
this in different places · When you call createRoot(document.getElementById("root")).render(...), the callback function you pass to render runs in a...