import React , { FC , Fragment } from 'react' ; import { Route , Router as Wouter } from 'wouter' ; import { useHashLocation } from './hooks/useHashLocation' ; import { MainPage } from './pages/Main/Main' ; import { ReaderPage } from './pages/Reader' ; export const Router = ( ) => { return ( < Fragment > < Wouter hook = { useHashLocation } > < Route path = "/" component = { MainPage } / > < Route path = "/reader" component = { ReaderPage } / > < /Wouter> < /Fragment>); } ;