I am building a application using Facebook flux
architecture of React JS
. I have build the basic part of app where I have a login form. I am fetching t
This should work
var Store = require('Store');
var Navigatable = require('react-router-component').NavigatableMixin
var LoginComponent = React.createClass({
mixins: [ Navigatable ],
onClick: function() {
Store.login(function(userId){
this.navigate('/user/' + userId)
}.bind(this));
},
render: function() {
return ;
}
});