JSFiddle - React, Tailwind, and code Playground
JavaScript
var each, page, pages;
pages = (function() {
var _ref, _results;
_ref = this.props.ids;
_results = [];
for (page in _ref) {
each = _ref[page];
$('#start').append("<div id='" + page + "' ></div>");
_results.push(React.renderComponent(page({
title: each.title,
text: each.text
}), $("#" + page)[0]));
}
return _results;
}).call(this);