(Edit) Chap05 -> Declaring routes -> Creating a component containing routes: put Header component back to App
This commit is contained in:
parent
076120fee7
commit
353cb61006
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user