4 ms·
There exists a book dedicated to explaining how to use a single CSS property: https://www.goodreads.com/book/show/28485920-get-ready-for-css-grid-layout https:/
by hnbad 4y ago
There exists a book dedicated to explaining how to use a single CSS property: https://www.goodreads.com/book/show/28485920-get-ready-for-css-grid-layout https://www.goodreads.com/book/show/28485920-get-ready-for-c...
Yeah, I know, that's cheating. Grid layout actually consists of multiple properties, but the point is that just because something can be described in a way that sounds trivial that doesn't mean it is trivial. There's also a book dedicated to async/await (and promises).
You can describe useEffect by its behavior and interface and be done in a few sentences. But it's basically "side effects: the API" in React. You can use it to do complex things much like you can use CSS grid layouts to build complex layouts, and it's entirely reasonable to provide a more thorough guide for those who prefer to learn that way rather than through experimentation.