MindfulStudio / frontend

A mental health application for tracking and analyzing emotional states in depth
https://gemischtegefuehle-app.onrender.com/
Other
3 stars 2 forks source link

Refactoring: Extract functions (fetchs, helpers) from Providers into separate folders and files (read description) #79

Closed nadjascodejourney closed 1 month ago

nadjascodejourney commented 1 month ago

Outsource functions (fetch, helpers) to make the code clearer and more modular

Structure proposal for outsourcing in EmotionsProvider.jsx

Folder: utils > helpers

Contains helper functions such as handleFamilySelect, handleFeelingSelect, etc.

Folder: utils > services (or other name)

Contains all data fetching logic, such as fetchFeelings etc.