UNPKG

tplus-poslogin

Version:

password login module

28 lines (24 loc) 567 B
import React from 'react'; import { history, stores, registerRoutes, extendRender, runInAction, observer } from 'tplusfx'; // registerRoutes([{ // path: '/', // component: observer(({ // match, // routes // }) => { // if (match.isExact) // return (<div> // <p>{stores.user.userName}</p> // <button onClick={()=>{history.push('/login')}}>Login</button> // <button onClick={()=>{stores.user.logout()}}>Logout</button> // </div>) // return routes; // }) // }])