V in MVC
building large applications with
data that changes over time
React.createElement('a', {
className: "button",
href: 'https://facebook.com/'
}, 'Hello!')
(html
[:a {:class "button"
:href "https://facebook.com"}
"Hello!"])
var renderButtons = function(context) {
return (
<div>
<AolButton onClick={context.handleEditItem} title="Edit" />
<AolButton onClick={context.handleDeleteItem} title="Delete" />
</div>);
};
<ItemComponent index={index}
item={item}
editMode={editMode}
onEdit={onEditItem}
onRemove={onRemoveItem}
onMove={onMoveItem} />
AppComponent:
State: {}
ColumnComponent:
SectionComponent:
data
actions
AppComponent {
ColumnComponent {
SectionComponent {
ItemComponent {}
}
}
}
State
SectionPopup
ItemPopup
SelectCategoryPopup
SelectCMSNodePopup
SelectProductPopup