(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 React from 'react';
|
||||||
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
||||||
|
|
||||||
|
import { Header } from './Header';
|
||||||
import { HomePage } from './HomePage';
|
import { HomePage } from './HomePage';
|
||||||
import { fontFamily, fontSize, gray2 } from './Styles';
|
import { fontFamily, fontSize, gray2 } from './Styles';
|
||||||
import { AskPage } from './AskPage';
|
import { AskPage } from './AskPage';
|
||||||
|
@ -14,6 +15,7 @@ import { NotFoundPage } from './NotFoundPage';
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
|
<Header />
|
||||||
<div
|
<div
|
||||||
css={css`
|
css={css`
|
||||||
font-family: ${fontFamily};
|
font-family: ${fontFamily};
|
||||||
|
|
Loading…
Reference in New Issue