import React, { useEffect } from "react"; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import { useDispatch } from "react-redux"; import { actions, useTypedSelector } from "./store"; import { Link } from "react-router-dom"; const App: React.FC = () => { const dispatch = useDispatch(); const { isLoading } = useTypedSelector(state => ({ isLoading: state.isLoading, })); return (

Welcome to the home page. Loading: {isLoading ? "true" : "false"}

Here is the about page.

Here is the contact page.

); }; export default App;