Skip to content
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

Charles: Styled Components should be defined outside of React component #23

Open
eric-do opened this issue Nov 12, 2021 · 0 comments
Open

Comments

@eric-do
Copy link

eric-do commented Nov 12, 2021

Is there a specific reason you're defining them inside your component? It's standard to define them outside, as there's no dependency on having them defined inside, and defining them outside can allow them to be exported or moved to a separate file if needed in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant