[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"sanity-UiYy8O76Pv6rC2pHUze9xWroNqPbEsjPs_6S_fuonVo":3},{"data":4,"sourceMap":-1},{"info":5,"latest":16},{"_createdAt":6,"_id":7,"_rev":8,"_type":9,"_updatedAt":6,"avatar":10,"bio":11,"employee":12,"name":13,"slug":14},"2023-05-23T16:27:18Z","wp-author-cap-18954","9HpbCsT2tq0xwozQfkcuVr","blogAuthor",null,"I’m Doro Onome, a skilled software developer and technical writer with a passion for open source. I aim at working towards a good customer experience","none","Doro Onome",{"current":15},"doro-onome",[17],{"_id":18,"author":19,"commentCount":22,"comments":23,"excerpt":24,"featureTag":10,"image":25,"publishedAt":30,"slug":31,"sponsored":10,"tags":33,"title":56},"wp-post-18951",[20],{"_id":7,"avatar":10,"name":13,"role":10,"slug":21},{"current":15},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":26,"asset":27},"image",{"_ref":28,"_type":29},"image-c285fa20b1e4a139bbe2f1e9762181dbd10bb874-2400x1260-jpg","reference","2021-10-20T14:10:43.000Z",{"current":32},"why-hooks-are-the-best-thing-to-happen-to-react",[34,42,47,51],{"_createdAt":35,"_id":36,"_rev":37,"_type":38,"_updatedAt":35,"slug":39,"title":41},"2023-05-23T16:43:21Z","wp-tagcat-code-for-a-living","9HpbCsT2tq0xwozQfkc4ih","blogTag",{"current":40},"code-for-a-living","Code for a Living",{"_createdAt":35,"_id":43,"_rev":37,"_type":38,"_updatedAt":35,"slug":44,"title":46},"wp-tagcat-functional-programming",{"current":45},"functional-programming","functional programming",{"_createdAt":35,"_id":48,"_rev":37,"_type":38,"_updatedAt":35,"slug":49,"title":50},"wp-tagcat-react",{"current":50},"react",{"_createdAt":35,"_id":52,"_rev":37,"_type":38,"_updatedAt":35,"slug":53,"title":55},"wp-tagcat-react-hooks",{"current":54},"react-hooks","react hooks","Why hooks are the best thing to happen to React"]