term) action = newSearch(term) triggerAction(action) } onActionTriggered(action) { var state = getState(action) var view = getView(state) render(view) } history change
or Http requests onActionTriggered(action) { // State is generated by // calls to the API var state = getState(action) // A function that returns HTML var view = getView(state) render(view) }