this post was submitted on 24 Dec 2024
5 points (85.7% liked)
WebDev
1161 readers
2 users here now
Community for all things Web Development related.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Split the file if it feels like to much code to read comfortably. Most often I have a Layout component in a single file that receives its contents as children. Header and Footer are most often their own file in my case but if they are just a few lines of code I leave them in the Layout.