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
In addition, one advantage of still splitting Header and Footer, even with a Layout, is you can make them optional props to App with what you have as the defaults so they can be overriden.
It could still be the same file, but the typical convention is one exported component per file where the filename matches the component name. This is just a style guide for recommended best practices and readability.
Aight, that's enough justification for me. I'll go get to work.