import React from 'react' ; import { Route , Switch } from 'react-router-dom' ; import { Helmet } from 'react-helmet-async' ; import { AppProps } from './types' ; import AppContext from './AppContext' ; import HomePage from '../HomePage/Loadable' ; import NotFoundPage from '../NotFoundPage/Loadable' ; const App = ( ) => ( < AppContext . Provider value = { { } } > < Helmet titleTemplate = "%s - react-jump-start" defaultTitle = "react-jump-start" > < meta name = "description" content = "" / > < /Helmet> < Switch > < Route path = "/" exact component = { HomePage } / > < Route component = { NotFoundPage } /> < /Switch> < /AppContext.Provider>); export default App ;