[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"sanity-M76TjR1QjxUGHEhtWKpV1-xyaC2JAftQv3LFM9d9fr8":3},{"data":4,"sourceMap":-1},{"info":5,"latest":14,"pinned":52},{"_createdAt":6,"_id":7,"_rev":8,"_type":9,"_updatedAt":6,"descriptionText":10,"slug":11,"title":13},"2023-05-23T16:43:21Z","wp-tagcat-react-hooks","9HpbCsT2tq0xwozQfkc4ih","blogTag",null,{"current":12},"react-hooks","react hooks",[15],{"_id":16,"author":17,"commentCount":23,"comments":24,"excerpt":25,"featureTag":10,"image":26,"publishedAt":31,"slug":32,"sponsored":10,"tags":34,"title":51},"wp-post-18951",[18],{"_id":19,"avatar":10,"name":20,"role":10,"slug":21},"wp-author-cap-18954","Doro Onome",{"current":22},"doro-onome",31,true,"Originally, React mainly used class components, which can be strenuous at times as you always had to switch between classes, higher-order components, and render props. With React hooks, you can now do all these without switching, using functional components.",{"_type":27,"asset":28},"image",{"_ref":29,"_type":30},"image-c285fa20b1e4a139bbe2f1e9762181dbd10bb874-2400x1260-jpg","reference","2021-10-20T14:10:43.000Z",{"current":33},"why-hooks-are-the-best-thing-to-happen-to-react",[35,40,45,49],{"_createdAt":6,"_id":36,"_rev":8,"_type":9,"_updatedAt":6,"slug":37,"title":39},"wp-tagcat-code-for-a-living",{"current":38},"code-for-a-living","Code for a Living",{"_createdAt":6,"_id":41,"_rev":8,"_type":9,"_updatedAt":6,"slug":42,"title":44},"wp-tagcat-functional-programming",{"current":43},"functional-programming","functional programming",{"_createdAt":6,"_id":46,"_rev":8,"_type":9,"_updatedAt":6,"slug":47,"title":48},"wp-tagcat-react",{"current":48},"react",{"_createdAt":6,"_id":7,"_rev":8,"_type":9,"_updatedAt":6,"slug":50,"title":13},{"current":12},"Why hooks are the best thing to happen to React",[]]