Likes to learn something new and use it to find solutions to real life problems along with sharing my knowledge with others.
See more
portaโฆthing or not applicable in real world applications. It all depends on your own design and use case. The most important thing is to understand and know how to apply/follow the principles.
If writing React.Fragment every time is too long for you. React.Fragment has a shorthand syntax that you can use. It is <>...</>. So our BodyComponent and HeaderComponentcomponents:
React.Fragment
<>...</>
BodyComponent
HeaderComponent