I like React hooks because it simplifies the code we are writing using JavaScript. It is more concise and there is no need to work with the ever-changing lifecycle methods. You are left to use only four hooks: useState, useReducer, useContext, useEffect for most part.
I have written a short article on why I love React hooks ? What is your reason to like / dislike React hooks?
I do and I don't, kinda conflicted. In the past I had this subconscious stateless functions and complex classes. If I would start each component as stateleaa then when i need something that stateless function can not offer, (local state, cdm, cwm, scu) etc, i would convert to class. Now it became so tempting to use them and avoid classes because with hooks anything you can do is possible. You can have a local state with useState, cdm, cdu and scu is useEffects, useMemo for memoization, useReducer...etc
I like classes and it brings another beauty to codebase and I am afraid people will get lazy now and everything will be stateless short functions, mixed up stuff.
Gijo Varghese
A WordPress speed enthusiast
React hooks or whatever, now I can use state in functional components. That's what I like the most!