import * as React from "react" ; import * as ReactDOM from "react-dom" ; import * as MvcRouter from "mvc-router-spa" ; import { ControllerBase } from "./ControllerBase" ; import { BankApp } from "../BankApp" ; import { HomePageProps , HomePage } from "../Views/HomePage" ; export class HomeController extends ControllerBase { constructor ( app ) { super ( app ) ; } protected loadPage ( params ) { const props = { accounts : this . app . getBank ( ) . getAccounts ( ) } ; ReactDOM . render ( React . createElement ( HomePage , props ) , this . pageContainer ) ; } }