What I'm trying to achieve with this question is to not pass the <li> tag in the App.js component. The only solution I've found with the REACT documentation is to use an array and map it to <li> tag. The thing is that doing it this way is not so clean.
App.js
const App = () => {
<Component>
<li>
<Link> Item 1 </Link>
</li>
<li>
<Link> Item 2 </Link>
</li>
<li>
<Link> Item 3 </Link>
</li>
</Component>
}
Component.js
const Component = ({children}) => {
return(
<ul>{children}</ul>
)
}
Edit: My components where cluttered with unnecessary tags.
App.jsstart withconst App =? (twice)li) as a child, then you can render any child element/component from there.<>stuff</>