-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the differences between helpers and utils? #808
Comments
Looks to me like
|
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:
|
I just search "helper vs utils" on google and found the issue. I got the wanted answer at StackOverflow, so let me show the URL of the question at StackOverflow: What are the differences between Helper and Utility classes? In short, the answer is:
|
Hope it helps someone 😄
|
Nice and comprehensive explanation @pedronastasi |
Is it a good practice to put the constant file inside utils folder ? |
@sktsourav you can create a "constants" folder and keep your constants.js file inside it. Better still you can have an index.js file inside there then have a different files for different contexts and export them from index.js. |
I mean the
src/helpers
andsrc/utils
folder, what files should put in helpers folder, what should in utils folder?The text was updated successfully, but these errors were encountered: