Answer the question
In order to leave comments, you need to log in
How to output multiple child components without a wrapper in a React component?
Let's say we have an ArticleContent React component that outputs
<div>
<h3></h3>
<p class="primary-text"></p>
<p class="additional-text"></p>
</div>
Answer the question
In order to leave comments, you need to log in
It is possible like this:
<>
<h3></h3>
<p class="primary-text"></p>
<p class="additional-text"></p>
</>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question