(Edit) Chap05 -> Declaring routes -> Creating a component containing routes: put Header component back to App

Chap05
Jason Zhu 2022-03-29 16:19:21 +11:00
parent 5b79adea19
commit 5c08042544
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import { css } from '@emotion/react';
import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { Header } from './Header';
import { HomePage } from './HomePage';
import { fontFamily, fontSize, gray2 } from './Styles';
import { AskPage } from './AskPage';
@ -14,6 +15,7 @@ import { NotFoundPage } from './NotFoundPage';
function App() {
return (
<BrowserRouter>
<Header />
<div
css={css`
font-family: ${fontFamily};