DEV Community

Discussion on: Tip for React Developers

Collapse
 
pengeszikra profile image
Peter Vivo

Hard to separate BL this way, because hooks just started from view component. In my view redux-saga is much cleaner way to implement whole BL. I use saga without redux : use-saga-reducer

Collapse
 
hijazi313 profile image
Muhammad Hamza Hijazi

You didn't get my point.
Just export the array with the values and functions returned by your hooks, sometimes we have multiple hooks which depend or share state with each other. You can export these as a Custom hook which will definitely give a better developer experience. Now every React library has hooks so you should know how to get more from this feature.