From b09ce50ac2289a8b45fb98494042e2b8202fbcd3 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Fri, 22 May 2020 20:46:21 -0700 Subject: switch to styled components for raw renderer --- frontend/src/components/App.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'frontend/src/components/App.js') diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index ae95dcb..eb63ed9 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -11,6 +11,7 @@ import { useParams } from "react-router-dom"; import Raw from './renderers/Raw' +import Dispatch from './renderers/Raw' const SpacedTitle = styled.div` margin-top: 10vh @@ -38,6 +39,15 @@ const GetRawWithParam = () => { ); } +const RenderWithParam = () => { + let { hash } = useParams(); + console.log(hash) + + return ( + + ); +} + function App() { return ( @@ -58,6 +68,9 @@ function App() {
+ } + /> } /> -- cgit v1.2.3