var s = "xs";
React.createClass({
  render() {
    return (
      <ul class="cscdd" data-toto={ return 1 + "cdxs" }> cqsd
        {
          if (true) {
            <BreadcrumbItem href="#/messages/{ this.props.scope.get('scopes') || this.props.scope.get('parent') }">
              hello
            </BreadcrumbItem>
          }
        }
      </ul>
    );
  }
});

function hello() {

  return (
    <div>
      {active ? (
        <div></div>
      ) : (
        <span></span>
      )}
    </div>
  )

}

function hello() {

  return (
    <input
      type="file"
      ref={component => {
        this.inputFile = component;
      }}
    />
  );
}

export default function Example() {
  return (
    <Menu>
      <Menu.Item>
        ← cursor here
      </Menu.Item>
    </Menu>
  );
}


render() {
  return (
    <>
      Some text.
      <h2>A heading</h2>
      More text.
      <h2>Another heading</h2>
      Even more text.
    </>
  );
}

return (
  <ModalTrigger modal={<InviteForm auth={this.props.auth} />} />
);

return (
  <li>
    <ModalTrigger modal={ <InviteForm auth={this.props.auth} /> }>
      <a href="#">Invite Representative</a>
    </ModalTrigger>
  </li>
);

return (
  <div>
    <div>xs</div>
    <OtherComponent/>
    <OtherComponent class="toto"
                    {...props}
                    id="fr" />
  </div>;
);

const Demo = () => (
  <ListItem
    leftAvatar={
      <Avatar
        src=""
      />
    }
  >
  </ListItem>
);

import React, {Component} from 'react';
class Confirm extends Component {
  render() {
    const project = this.props.project;
    return (
      <Route exac path='/' render={(matchProps) => (
        <DefaultLayout>
          <Home {...matchProps} />
        </DefaultLayout>
      )} />
    )
  },
  render() {
    const project = this.props.project;
    return (
      <Foo
        someLongValue='x'
        text={
          <Text>
            text
          </Text>
        }
      />
    )
  }
}

import React, {Component} from 'react';
class Confirm extends Component {
  render() {
    const project = this.props.project;
    return (
      <Route
        exact
        path="/"
        render={ matchProps => (
          <Home {...matchProps} />)
        }
      />
    )
  }
};

class Test extends Component {
  render() {
    return (
      <Router>
        <Switch>
          <Route
            exact
            path="/"
            render={matchProps => (
              <DefaultLayout>
                <Home {...matchProps} />
              </DefaultLayout>
            )} />
          <Route
            path="/settings"
            render={matchProps => (
              <DefaultLayout>
                <Settings {...matchProps} />
              </DefaultLayout>
            )} />
        </Switch>
      </Router>
    )
  }
};

import React from 'react';

const Front = props => {
  return <div>
    <span>hello</span>
  </div>;
};

/** @jsx React.DOM **/
var React = require('react/addons');
var Component = require('./component');

function f() {
  return true
      && <E b={true} />
      || <E />;
}

export default class Header extends Component {
  render() {
    return (
      <div {...attributes}
           onClick={this.onClicked}
           onKeyDown={this.onKeyDowned}>
        {this.getChildren()}
      </div>);
  }
}

import * as React from 'react';

interface Props {
  name: string
}

class MyThing extends React.Component<Props, {}> {
  render() {
    return <span>hi</span>;
  }
}

export default MyThing as React.ComponentClass<Props>;

export default React.createClass({
  getInitialState() {
    return { num: this.getRandomNumber() };
  },

  getRandomNumber(): number {
    return Math.ceil(Math.random() * 6);
  },
  render(): any {
    return
    <div>
      Your dice roll :
      {this.state.num}
    </div>;
  }
});

function foo() {
  return <label>
    First Name:
    <Input name="name"
           type="text"
           validators={[
             required('You must supply a first name!'),
             (value) => value > 15 ? 'too long!': null
           ]} />
  </label>;
}

import React, {Component} from 'react';
class Confirm extends Component {
  render() {
    const project = this.props.project;
    return (
      <Switch>
        <Route
          path={'/home'}
          render={ (props) => (
            <Home {...props} />
          )} />
      </Switch>
    )
  }
}

// #870
import React, {Component} from 'react';
class Confirm extends Component {
  render() {
    const project = this.props.project;
    return (
      <form onSubmit="">
        <fieldset>
          {project.foo && (
            <div>Foo</div>
          )}
          {project.bar && (
            <p>Bar</p>
          )}
        </fieldset>
      </form>
    );
  }
}
export default Confirm;


var React = require('react')

return React.render(
  <div className="fooBar">
    {
      conditional &&
      <myComponent className="myComponent" />
    }
    <label>{labelText}</label>
    <div>
      <span>Hello</span>
    </div>
  </div>
);

'use strict';

var React = require('react'),
    Explore = require('./components/Explore'),
    DocumentTitle = require('react-document-title'),
    { RouteHandler } = require('react-router'),
    { PropTypes } = React;

var App = React.createClass({
  propTypes: {
    params: PropTypes.object.isRequired,
    query: PropTypes.object.isRequired
  },

  render() {
    return (
      <DocumentTitle title='Sample App'>
        <div className='App'>
          <Explore />
          <hr />
          <RouteHandler {...this.props} />
        </div>
      </DocumentTitle>
    );
  }
});

module.exports = App;

module.exports = React.createClass({
  render() {
    return (
      <div>
        <Component header={<ListHeader />} footer={<ListFooter />}
                   attr="cqs" xs="xs"
                   xsxs="sxx" />
        <Component />
        <Component />
      </div>
    );
  }
});

module.exports = React.createClass({
  render() {
    return (
      <tag>
        bla { <inside> { <ListHeader /> } </inside> } bla
      </tag>
    );
  }
});

module.exports = React.createClass({
  render() {
    return (
      <ul>
        {
          this.props.list.map(function(element) {
            return <li>{element}</li>;
          })
        }
      </ul>
    );
  }
});


Landing = React.createClass({
  render: function() {
    return (
      <ul>
        { for(e in list){
            console.log("not aligned");
          }}
      </ul>
    );
  }
});

var Component = React.createClass({
  render : function() {
    var stuff = this.props.formElements.map(function(elem) {
      switch(elem) {
        case "textarea" :
          return ( <textarea rows="4" /> );
          break;
        case "text" :
          return ( <input type="text" /> );
        default :
          return null;
      }
    });
  }
});

define(function (require) {
  'use strict';

  var React = require('react');
  var ModalTrigger = require('react-bootstrap').ModalTrigger;
  var InviteForm = require('components/InviteForm');

  var InviteLink = React.createClass({
    render: function() {
      if (this.props.auth.loggedIn()) {
        return (
          <li>
            <ModalTrigger modal={<InviteForm auth={this.props.auth} />}>
              <a href="#">Invite Representative</a>
            </ModalTrigger>
          </li>
        );
      } else {
        return <span></span>;
      }
    }
  });

  return InviteLink;
});

function hello() {

  return (
    <div>
      {somevar}
      <div className="row">
        <div className="col-md-4">
          Column1
        </div>
        <div className="col-md-4">
          Column2
        </div>
      </div>
    </div>
  );

}

React.createClass({
  render() {
    return (
      <ul class="cscdd" data-toto={ return 1 + "cdxs" }> cqsd
        { (this.props.scope.get('type') !== "home") ?
          <BreadcrumbItem href="#/messages/{this.props.scope.get('scope') || this.props.scope.get('parent')}">
            {this.props.scope.get('scope') || this.props.scope.get('parent')}
          </BreadcrumbItem> : null}
      </ul>
    );
  }
});


React.createClass({
  render() {
    return (
      <ul class="cscdd" data-toto={ return 1 + "cdxs" }> cqsd
        { this.props.list.map(function(element) {
            var x = 1;
            return <li class="dxs" x="xs">{ "aa" + this.getModel().get('bb') }</li>
        }) } cqsdc { return "cd"; }
      </ul>
    )
  }
});

return (
  <li>
    <ModalTrigger test="xs" test="dccd" modal={ <InviteForm> }>
      <a href="#">Invite Representative</a>
    </ModalTrigger>
  </li>
);


return (
  <li>
    <ModalTrigger modal={ <InviteForm auth={this.props.auth} /> }>
      <a href="#">Invite Representative</a>
    </ModalTrigger>
  </li>
);

var MyClass = react.createClass({
  render: function() {
    return
    <div>
      <OtherComponent/>
      <OtherComponent class="toto"
                      {...props}
                      id="fr" />
    </div>;
  }
});
