質問編集履歴
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,28 @@
|
|
15
15
|
### 該当のソースコード
|
16
16
|
https://github.com/shihominorth/Tastybox-react
|
17
17
|
|
18
|
+
```JavaScript
|
19
|
+
import React, { useState } from "react";
|
20
|
+
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
21
|
+
import LandingPage from "./landing_page/components/Landing_Page";
|
22
|
+
|
23
|
+
const loginBtnClicked = { "location.href= ${LoginPagePath}" };
|
24
|
+
|
25
|
+
function App() {
|
26
|
+
|
27
|
+
return (
|
28
|
+
<BrowserRouter>
|
29
|
+
<Routes>
|
30
|
+
<Route component={LandingPage} />
|
31
|
+
</Routes>
|
32
|
+
</BrowserRouter>
|
33
|
+
);
|
34
|
+
}
|
35
|
+
|
36
|
+
export default App;
|
37
|
+
|
38
|
+
```
|
39
|
+
|
18
40
|
### 試したこと
|
19
41
|
|
20
42
|
- BrowserRouterをHashRouterに変えましたがダメでした。
|