Just use children
This post was sent on my newsletter a few weeks ago, just saying.
This is part of a series of posts about writing good components
No, this isn't a post about child labour. It's a post about using children as props. Wait that doesn't sound right eith...
hashnode.com
JS Artisan
Edit text files for living ( React/Node Text Files though )
This is the exact approach i follow. I hate when people define like 10 props for ui component and use if else in that component. Damn it! Just use the children.