Skip to content

Instantly share code, notes, and snippets.

@soska
Created June 25, 2015 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soska/612e55199775f4f61886 to your computer and use it in GitHub Desktop.
Save soska/612e55199775f4f61886 to your computer and use it in GitHub Desktop.
App Builder In React
'use strict';
const React = require('react');
const AdBuilder = React.createClass({
getInitialState(){
return {
creative : CreativeStore.getEmptyCreative(),
selectedWidget : null
}
},
render(){
return (
<div className='ad-builder-wrapper'>
<TopBar creative={this.state.creative}/>
<Inspector selectedWidget={this.state.selectedWidget}/>
<ToolBar creative={this.state.creative}/>
<Canvas creative={this.state.creative}/>
</div>
);
}
});
React.render(<AddBuilder/>, document.getElementById('main'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment