var createActionLink = function(text, targetId){ React.render( React.createElement(ActionLink, { text: text, action: function(text){ AppDispatcher.handleViewAction({ type: ACTIONS[text.toUpperCase()] }) } }), document.getElementById(targetId) ) }
submitForm(dataObj) { AppDispatcher.handleViewAction({ actionType: 'SUBMIT_FORM', data: dataObj }); }
handleGithubData(dataObj) { AppDispatcher.handleViewAction({ actionType: 'GITHUB', data: dataObj }) }