(Edit) Chap05 -> Declaring routes -> Creating a component containing routes: put Header component back to App
parent
5b79adea19
commit
5c08042544
|
@ -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…
Reference in New Issue