"Why use a library when you can just write 10 lines of vanilla JS" feels like a self-own. The only way you can think this is if the stuff you build is REALLY simple.
Can you fetch data with 10LoC? Sure. Can you handle race conditions and errors as well as React Query? Lol nope.

Source: x.com/t3dotgg/status/1818769081832772006