(A)nother (R)ich (C)ontent editor using React.js
<Editor content={object} onChange={fn} />
var React = require('react');
var ArcReactor = require('arc-reactor');
var { Editor } = ArcReactor;
var Store = require('./ContentStore.js');
var App = React.createClass({
contentChanged: function(json) {
Store.update(json);
},
render: function() {
var content = Store.find();
return (
<Editor content={content} onChange={this.contentChanged} />
);
}
});
React.render(<App/>, document.getElementById("example"));
npm test
npm run examples