/** Normalize JS */ import 'babel-polyfill'; /** Normaize CSS */ import { normalize } from "csstips"; normalize(); import { forceRenderStyles, cssRaw } from 'typestyle'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { routeState } from './routeState'; import { observer } from 'mobx-react'; import { router } from './router'; import { links } from './links'; /** * Some page CSS customizations. * Note: Creating componentized CSS would detract from the points of the demo */ cssRaw(` #root { padding: 10px; } `); import { Button, Alert, Vertical, Horizontal, AlertSuccess } from './ui/components'; /** * A sample nav */ export const Nav = observer(() => { return {routeState.loggedIn && Dave John } {routeState.loggedIn && } Code for the demo Yester Docs Star it on github ⭐ ; }); /** * Pages */ export const Login = observer(() =>

Login Page

{!routeState.loggedIn && } {routeState.loggedIn && You are logged in! Visit some profile Pages :)} {routeState.loginRequiredMessage && {routeState.loginRequiredMessage}}