text: class Menu extends React.Component {
    render() {
      let menus = ['Home', 'About', 'Services', 'Portfolio', 'Contact us'];
      return React.createElement('div', null, menus.map((v, i) => React.createElement('div', {
        key: i
      }, React.createElement(Link, {
        label: v
      }))));
    }
  
  }
  
  class Link extends React.Component {
    render() {
      let url = '/' + this.props.label.toLowerCase().trim().replace(' ', '-');
      return React.createElement('div', null, React.createElement('a', {
        href: url
      }, this.props.label), React.createElement('br'));
    }
  
  }
  
  ReactDOM.render(React.createElement(Menu, null), document.getElementById('menu'));
  