It's almost funny how he starts off the article by saying he doesn't use libraries, then shows you a function for an API call he wrote that is ~100 LOC. Had this guy pulled in something like react-query, he could have written that entire hook in about 5 LOC.
I'd rather write 5 lines of code using a library that I might have to replace later than write 100 line of code to future proof my function from the start.