Menu
The best thing about a boolean is even if you're wrong, you're only off by a bit.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Azure
Backend
Bash
C++
Cloud
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
Setstate Memes
Posts tagged with Setstate
Callback
React
Javascript
Programming
Frontend
Webdev
6 months ago
434.1K views
0 shares
When documentation writers decide to write a 200-word essay about the "second argument of the setState() function" instead of just calling it what it literally is: a callback. You know, that thing developers have been calling callbacks since the dawn of asynchronous programming? The React docs are out here writing thesis statements about "powerful mechanisms for handling state updates and executing code after the state has been updated and the component has re-rendered" when they could've just said "callback function runs after state updates." That's it. Three words. Done. The frustration is real because this verbose documentation style makes you feel like you're reading a legal contract when you just want to know what parameter goes where. Sometimes simplicity beats eloquence, especially when you're debugging at 2 AM.
Today's picks
Handover
Programming
172.4M views
3 days ago
Beelink SER5 MAX Mini PC,AMD Ryzen7 7735U(8C/16T,up to 4.75GHz),Mini Computer 24GB LPDDR5 RAM 500GB M.2 SSD Graphics 12core 2200MHz,Support 4K Triple Display/HDMI+DP+Type-C/Wifi6/BT5.4/2.5G LAN
Affiliate
$499.00
NordVPN
Sponsored
VPN