React Js
React Fragment
Fragment is used to group a list of children without adding extra nodes to the DOM
Syntax ::
<React.Fragment></React.Fragment>
Ex:
<React.Fragment>
<h1>Hellow</h1>
<h1>Ramesh</h1>
</React.Fragment>
Syntax ::
<></>
Ex:
<>
<h1>Hellow</h1>
<h1>Ramesh</h1>
</>