Skip to content

Commit

Permalink
Merge pull request #2 from Skhuthon/feature/1
Browse files Browse the repository at this point in the history
[#1] ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ
  • Loading branch information
MyungJiwoo authored Jun 27, 2024
2 parents 5c72cdc + a65b92b commit 506a984
Show file tree
Hide file tree
Showing 9 changed files with 163 additions and 47 deletions.
83 changes: 78 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-router-dom": "^5.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.24.0",
"react-scripts": "5.0.1",
"three": "^0.165.0",
"typescript": "^5.5.2",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
25 changes: 0 additions & 25 deletions src/App.js

This file was deleted.

17 changes: 17 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import MainPage from "./pages/MainPage";
import ThemeRecs from "./pages/ThemeRecs";

const App: React.FC = () => {
return (
<Router>
<Routes>
<Route path="/" Component={MainPage} />
<Route path="/themeRecs" Component={ThemeRecs} />
</Routes>
</Router>
);
};

export default App;
17 changes: 0 additions & 17 deletions src/index.js

This file was deleted.

21 changes: 21 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";

const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);

root.render(
// strictMode์—์„œ๋Š” ๋‘๋ฒˆ ๋ Œ๋”๋ง ๋  ์ˆ˜ ์žˆ์œผ๋‚˜, ํ”„๋กœ๋•์…˜๋นŒ๋“œ ๋ชจ๋“œ์—์„œ๋Š” ๊ทธ๋ ‡์ง€ ์•Š์„๊ฒƒ
<React.StrictMode>
<App />
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
10 changes: 10 additions & 0 deletions src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";

const MainPage = () => {
return (
<>
<h1>Main</h1>
</>
);
};
export default MainPage;
10 changes: 10 additions & 0 deletions src/pages/ThemeRecs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";

const ThemeRecs = () => {
return (
<>
<h1>ThemeRecs</h1>
</>
);
};
export default ThemeRecs;
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"]
}

0 comments on commit 506a984

Please sign in to comment.