What is React Fragment and why do JSX elements must have one parent element?
Sep 14, 2021 · 2 min read · 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...
Join discussion
