Bec4use / Shopee-Clone

0 stars 0 forks source link

Project structure #4

Open NunChatSpace opened 1 year ago

NunChatSpace commented 1 year ago

ควรแยก Component กับ Page ออกจากกัน

src
    - routes
        - +page.svelte
        - Login
            - +page.svelte
        - Page1
            - +page.svelte
    - components
        - common
            - Layout.svlete
        - routes
            - Home
                 - Component1.svelte
                 - Component2.svelte
            - Login
                -  Component1.svelte
                ...
            - Page1
                - ComponentX.svelte
                - ComponentY.svelte
                - ComponentZ.svelte