I’m implementing an ecommerce in react with a feature-based architecture but I dont know where to place those functionalities that are shared between features but are specific enough to belong to a feature and not to a common folder, like auth
or cart
features.
I have an Auth
feature where I put components like login
or resetPassword
and are isolated in an Auth
folder, but I need things like useAuth
hook to verify if a user is authenticated in any place in the aplication.