DEV Community

Discussion on: Tip for React Developers

hijazi313 profile image
Muhammad Hamza Hijazi Author

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.