Do you create component for them?
Do you keep them in components folder
Or in separate folder?
Do you provide good types for them?
Do you create component for them?
Do you keep them in components folder
Or in separate folder?
Do you provide good types for them?
For further actions, you may consider blocking this person and/or reporting abuse
Michael Davis -
Emanuele Bartolesi -
Luckson ngoy -
Alex -
Once suspended, itsjzt will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, itsjzt will be able to comment and publish posts again.
Once unpublished, all posts by itsjzt will become hidden and only accessible to themselves.
If itsjzt is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Saurabh Sharma.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community ๐ฉโ๐ป๐จโ๐ป safe. Here is what you can do to flag itsjzt:
Unflagging itsjzt will restore default visibility to their posts.
Top comments (4)
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.
Hi! Thank you for this information. What do you guys do for something like NextJS pages where in you can not separate a component in the same directory where its parent resides or where it is specifically used? Something like a non-reusable component
Hi!
I won't provide an answer but a thought.
I don't believe there's a reason making some block of code a component if it is not reusable.
Yeah, that a good option but parent components can be huge without extraction.