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

This commit is contained in:
Jason Zhu 2022-03-29 16:19:21 +11:00
parent 076120fee7
commit 353cb61006

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};