diff --git a/src/App.js b/src/App.js index 83c03f9..76c0346 100644 --- a/src/App.js +++ b/src/App.js @@ -2,6 +2,8 @@ import React, {useState} from 'react'; import './App.scss'; import config from './config'; +import { Switch, Route } from 'react-router-dom'; + import socketIOClient from 'socket.io-client'; export const socket = socketIOClient(config.apiAddress); @@ -16,6 +18,17 @@ function App() {

React Boilerplate

{fetchData ?

{fetchData}

: <>} {socketData ?

{socketData}

: <>} + + + +

Index

+
+ + +

Game

+
+ +
); }