permulaan
This commit is contained in:
3
src/modules/contoh/fun/index.ts
Normal file
3
src/modules/contoh/fun/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { funLihatNama } from "./lihat_nama";
|
||||
|
||||
export { funLihatNama }
|
||||
3
src/modules/contoh/fun/lihat_nama.ts
Normal file
3
src/modules/contoh/fun/lihat_nama.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function funLihatNama() {
|
||||
console.log("nama malik")
|
||||
}
|
||||
6
src/modules/contoh/index.ts
Normal file
6
src/modules/contoh/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import valNama from "./val/get_nama";
|
||||
import Halaman, { Menu } from "./view";
|
||||
|
||||
export default Halaman
|
||||
export { valNama }
|
||||
export { Menu }
|
||||
2
src/modules/contoh/val/get_nama.ts
Normal file
2
src/modules/contoh/val/get_nama.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
const valNama = "malik"
|
||||
export default valNama
|
||||
5
src/modules/contoh/view/halaman/index.tsx
Normal file
5
src/modules/contoh/view/halaman/index.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function Halaman() {
|
||||
return <>
|
||||
<div>Halaman</div>
|
||||
</>
|
||||
}
|
||||
5
src/modules/contoh/view/index.ts
Normal file
5
src/modules/contoh/view/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import Halaman from "./halaman";
|
||||
import Menu from "./menu";
|
||||
|
||||
export default Halaman
|
||||
export { Menu }
|
||||
5
src/modules/contoh/view/menu/index.tsx
Normal file
5
src/modules/contoh/view/menu/index.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
export default function Menu() {
|
||||
return <>
|
||||
ini adalah Menu
|
||||
</>
|
||||
}
|
||||
Reference in New Issue
Block a user