3511. CodeSOD: Over and Under Reaction (thedailywtf.com)
Today's anonymous submitter sends us two blocks. The first is a perfectly normal line of React code: const [width, setWidth] = useState(false) This creates a width variable, defaulting it to false, and a setWidth function, which lets React detect when you change the variable, and trigger a re-render...