score:1

Accepted answer
const openAppRoute = (route) => {
  //    Summary:
  //        Helper function for developers to navigation 
  //        to a different route programmatically.
  hashHistory.push(route);
};
window.openAppRoute = openAppRoute;

$("#loginBtn").click(
  function(){
    var email = $('loginEmail').val();
    var pass = $('loginpwd').val();

    /* Check to see if credential are correct.
     * If so, change to '/home route
     */
    window.openAppRoute("/home");
  }
);

Related Query

More Query from same tag