I mean the src/helpers and src/utils folder, what files should put in helpers folder, what should in utils folder?
Looks to me like /utils is a place where you can place small snippets you can use throughout the application. Small functions to build bigger things with.
/helpers is more of a place where you store code architectural snippets in my view. Things essential for bootstrapping components and developer ergonomics.
Looks to me like
/utilsis a place where you can place small snippets you can use throughout the application. Small functions to build bigger things with.
/helpersis more of a place where you store code architectural snippets in my view. Things essential for bootstrapping components and developer ergonomics.
Hi @janhoogeveen, thanks for the answer. I couldn't quite grasp it, could you please explain in other form? Thank you :D
I've run into this "issue" too while trying to structure a project. Here's how it fits me better:
index.js is the point of entry. It requires the modules in /modules/modules contains the getAll.js and getById.js modules/libs holds the individual steps a given module calls/utils has very short and specific functions used throughout functions in /libs
Most helpful comment
Looks to me like
/utilsis a place where you can place small snippets you can use throughout the application. Small functions to build bigger things with./helpersis more of a place where you store code architectural snippets in my view. Things essential for bootstrapping components and developer ergonomics.