m looping using for in render function its giving syntax error can we not use this way in react following is the code
render(){
return(
<table>
for(var i=0;i<this.props.TRlength;i++)
<TRcomponent TDlength={this.state.tdLength} />
</table>
)
}
error it throws `/src/Table.js Syntax error: D:/my-app1/src/Table.js: Unexpected token (17:50)
<table>
for(var i=0;i<this.props.TRlength;i++)//error here
^
<TRcomponent TDlength={this.state.tdLength} />
`
any help is appreciated