import { Route } from 'boring-router-react' ; import { observer } from 'mobx-react' ; import React , { Component , ReactNode } from 'react' ; import { route } from './@routes' ; import { CreateView , HomeView , ListView } from './@views' ; @ observer export class App extends Component { render ( ) { return ( < > < Route match = { route } component = { HomeView } / > < Route match = { route . create } component = { CreateView } / > < Route match = { route . list } component = { ListView } / > < />); } }