Skip to content

Commit f0ca9fc

Browse files
committed
update
1 parent ecb0079 commit f0ca9fc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- [FAQ: Difference between - npm install & npm ci](#faq-difference-between-npm-install--npm-ci)
77
- [Description of Folder Structure](#description-of-folder-structure)
88
- [How to Create a Similar Project By Yourself](#how-to-create-a-similar-project-by-yourself)
9+
- [How to Dockerize React App (Coming Soon on My Blog)](https://mukitul-islam.blogspot.com/)
910

1011
#
1112

src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import {
44
} from "react-router-dom";
55
import MainLayout from "./components/layouts/MainLayout";
66
import HomeScreen from "./components/screens/home/HomeScreen";
7+
import { AppRoutes } from "./utils/AppRoutes";
78

89
const getMainLayout = () => {
910
return (<MainLayout>
1011
<Routes>
11-
<Route path={"/home"} element={<HomeScreen />} />
12-
<Route path={"*"} element={<HomeScreen />} />
12+
<Route path={AppRoutes.HOME} element={<HomeScreen />} />
13+
<Route path={AppRoutes.ANY} element={<HomeScreen />} />
1314
</Routes>
1415
</MainLayout>)
1516

src/utils/AppRoutes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const AppRoutes = {
2+
ANY: '*',
3+
HOME: '/home'
4+
}

0 commit comments

Comments
 (0)