# How to develop in Svelte using SvelteKit ## New and Old Concepts ### CustomCode Folder Here we will place all of our code, to keep clean the environment #### Components This is the folder where we'll make our components. Each file will have its component, so don't make more than 1 component in the same file Beware of not make them all in the same folder, but to create subfolder to keep code that logically is similar in the same folder: ```bash # This is ok Components/ +--Buttons/ | +--MyButton1 | +--MyButton2 # this is NOT Components/ +--MyButton1 +--MyButton2 # this is NOT either (but at least better than the previous) Components/ +--MyButton1/ | +--MyButton1.svelte +--MyButton2/ | +--MyButton2.svelte ``` #### Utils Here we'll put some JS code as an Internal library. This folder will have pure code, so no components here. As always, make folders according to a concept. Here it is **ENCOURAGED** to group code with similar meaning, to avoid **Ravioli** code. However, if too long, consider splitting the file is some smaller ones, to avoid **Spaghetti** code ## Making new components Follow guide on [Svelte Components](https://svelte.dev/tutorial/svelte/your-first-component) However, we basically have 3 main components following this order: - `