Good question! I'm guessing it depends on your setup and if your building this as part of a team.
On my dev team, we usually break them out into their own file unless it's a styled component just for that parent component.
Currently we keep them in a folder for that specific item. For example, if we had a PanelRenderer that had a specific PanelChilr that only worked for it they would be placed in the PanelRenderer directory.
Even if it's only used once, we prefer to type them fully. This helps with future refactors, bug fixes, additional features.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good question! I'm guessing it depends on your setup and if your building this as part of a team.
On my dev team, we usually break them out into their own file unless it's a styled component just for that parent component.
Currently we keep them in a folder for that specific item. For example, if we had a PanelRenderer that had a specific PanelChilr that only worked for it they would be placed in the PanelRenderer directory.
Even if it's only used once, we prefer to type them fully. This helps with future refactors, bug fixes, additional features.