Last Updated on June 17, 2024
Fragments let you group a list of children without adding extra nodes to the DOM.
render() { return ( <React.Fragment> <ChildA /> <ChildB /> <ChildC /> </React.Fragment> ); }
class Columns extends React.Component { render() { return ( <> <td>Hello</td> <td>World</td> </> ); } }
References
https://reactjs.org/docs/fragments.html