Skip to content

Instantly share code, notes, and snippets.

@Xananax
Created October 21, 2015 14:19
Show Gist options
  • Save Xananax/0f39ed62ca3100a6fd59 to your computer and use it in GitHub Desktop.
Save Xananax/0f39ed62ca3100a6fd59 to your computer and use it in GitHub Desktop.
class TreeNode extends Component{
render(){
return (<table>
{this.props.files.map(function r(child){
return [<tr>{child.name}</tr>]
.concat(child.files.map(r))
})}
</table>)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment