DEV Community

Discussion on: React Fragments – What, Why, How

Collapse
 
mylastore profile image
Oscar Quinteros

on your example below how does react know to put a row instaead of a div element?

class Columns extends React.Component {
render() {
return (

Hello
World

);
}
}
Collapse
 
tumee profile image
Tuomo Kankaanpää

I'm not sure if I understood correctly your question, but what I think you are looking for is that the row (tr) is inserted by the parent component and the Columns component only returns the td elements.