I am new to React.js. I am trying to bind data arrays. I am looking for the equivalent of ng-repeat, but i can\'t find it inside documentation.
e.g:
var
Here is an example using ES6, and a stateless component.
The below code demonstrates creating a menu by looping through a list of menu items.
import React from 'react';
import Menu from 'material-ui/lib/menus/menu';
import MenuItem from 'material-ui/lib/menus/menu-item';
const menuItems = [
{route: '/questions', text: 'Questions'},
{route: '/jobs', text: 'Jobs'},
{route: '/tags', text: 'Tags'},
{route: '/users', text: 'Users'},
{route: '/badges', text: 'Badges'}
{route: '/questions/new', text: 'Ask Question'}
].map((item, index) => );
const Sidebar = ({history}) => (
);
export default Sidebar;
Basically what we're doing is just pure javascript iteration utilizing Array.map.