Skip to main content
deleted 32 characters in body
Source Link
Jacob
  • 79k
  • 24
  • 159
  • 245

You seem to have aThe data structure that is a redundant extra layer;redundant; you can simply do this:

render() { var elements = ( <div id={1}id='1' className='col-md-12 test'></div> ); return ( <div>{elements}</div> ); } 

Element trees themselves are just data. Rather than trying to invent a data structure to represent one, just use JSX.

You seem to have a data structure that is a redundant extra layer; you can simply do this:

render() { var elements = ( <div id={1} className='col-md-12 test'></div> ); return ( <div>{elements}</div> ); } 

Element trees themselves are just data. Rather than trying to invent a data structure to represent one, just use JSX.

The data structure is redundant; you can simply do this:

render() { var elements = ( <div id='1' className='col-md-12 test'></div> ); return ( <div>{elements}</div> ); } 

Element trees themselves are just data. Rather than trying to invent a data structure to represent one, just use JSX.

Source Link
Jacob
  • 79k
  • 24
  • 159
  • 245

You seem to have a data structure that is a redundant extra layer; you can simply do this:

render() { var elements = ( <div id={1} className='col-md-12 test'></div> ); return ( <div>{elements}</div> ); } 

Element trees themselves are just data. Rather than trying to invent a data structure to represent one, just use JSX.