What is React Fragment and why do JSX elements must have one parent element?
React Fragment
It's a special kind of React component which allows you to position two elements side-by-side rather than just nested.
return(
<div>
<div>Hello</div>
<div>World</div>
</div>
)
The above code can be written using Fragment as...
hadiazeez.hashnode.dev2 min read