Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-07 01:05:59 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7235aaa53faeeda4a57a81a05d56a4e987b9ef0b
7235aaa5
1 parent
039823cd
라우터에 Room 컴포넌트 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
web/src/App.tsx
web/src/App.tsx
View file @
7235aaa
...
...
@@ -2,6 +2,7 @@ import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { socket, SocketProvider } from './contexts/SocketContext';
import { Login } from './pages/Login';
import { Room } from './pages/Room';
import { Rooms } from './pages/Rooms';
const App: React.FC = () => {
...
...
@@ -11,7 +12,7 @@ const App: React.FC = () => {
<Switch>
<Route exact path='/' component={Login}/>
<Route path='/rooms' component={Rooms}></Route>
<Route path='/:roomId'></Route>
<Route path='/:roomId'
component={Room}
></Route>
</Switch>
</Router>
</SocketProvider>
...
...
Please
register
or
login
to post a comment