4 ms·
from the documentation: There are two basic concepts: There are two basic concepts: Each page of your app is a component You create pages by adding files
by slim 6y ago
from the documentation:
There are two basic concepts:
There are two basic concepts:
Each page of your app is a component
You create pages by adding files to the src/routes directory of your project. These will be server-rendered so that a user's first visit to your app is as fast as possible, then a client-side app takes over
looks like you reinvented php, no?
- rich_harris 6y agooh, does PHP include a client-side router these days? that's exciting!
- F117-DK 6y agolol
- jiofih 6y agoNo. PHP hasn’t been “one file per page” in at least 15 years, and that’s hardly a defining trait for either of these two things. If this is your only thought about it, you have a lot of catching up to do!
- qbasic_forever 6y agoLearn more about svelte (not just sveltekit here) and you'll see why your snarky comment just looks dull and uninformed. SSR (what you're calling reinvented php here) is just one tiny part of the svelte and broader component-based client-side JS ecosystem. You're washing away their incredible power for building fully browser-based applications that mix client and server logic all from the same clean codebase.