I think I have a more comprehensive React reference here by now.
/** @jsx React.DOM */
-// Testing stuff
-var List = React.createClass({
- render: function () {
- var items = this.props.items;
- var listitems = [];
- for (var i = 0 ; i < items.length ; i++) {
- listitems.push(<ListItem key={i}>{items[i]}</ListItem>);
- }
- return <ul>{listitems}</ul>;
- }
-});
-
-var ListItem = React.createClass({
- render: function () {
- return <li>{this.props.children}</li>;
- }
-});
-
-
// Login form
var LoginForm = React.createClass({
// integration for now:
window.widgets = {
- "List": List,
- "ListItem": ListItem,
"BuddyListItem": BuddyListItem,
"LoginForm": LoginForm,
"BuddyList": BuddyList,