-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Where must I put these files? [React, React Native] #149
Comments
Hey @gianllopez , thanks for the kind words! I think you answered the questions yourself, if it's local to a feature, keep it there. If it's only used in one place, feel free to keep it in the same file where it's used, no need to add extra files just for that. If it's reused within the feature, moving it to As for the global enum, you can have a global types.ts file where you can put all global types, similar to https://github.com/alan2207/bulletproof-react/blob/master/src/types/index.ts . |
First of all, I want to thank you for the fascinating work you are doing, but I have the following situation:
In my React Native project, I have the following folder structure:
And I have several questions:
enum
that will only be used within a specific feature?enum
that are going to be used throughout the entire application?Thank you in advance, I hope to receive a response as soon as possible.
Gian López.
The text was updated successfully, but these errors were encountered: