I am learning about flux architecture for reactjs, while reading this article: https://medium.com/brigade-engineering/what-is-the-flux-application-architecture-b57ebca85b9e
I can not seem to get what does the author means by "component handles the form submission by calling its own callback" in following context:
// Saving a new ToDo calls the '_onSave' callback
var Header = React.createClass({
/**
* @return {object}
*/
render: function() {
return (
<header id="header">
<h1>todos</h1>
<TodoTextInput
id="new-todo"
placeholder="What needs to be done?"
onSave={this._onSave}
/>
</header>
);
},