When using a UI library like React or Svelte, you can opt for a framework such as Next.js or SvelteKit. Each framework is compatible with one or more libraries. For example, Next.js is compatible with React but not with Svelte, while SvelteKit is the other way around, and Astro can be used with both.

There are many tools and options in the web development landscape, which has always left me confused, but now I think I’m slowly getting it. The image below should summarize how things are split in this landscape, and hopefully make things clearer.

Web Development Layers

Since the frameworks control the rendering, some of them are optimized for certain rendering modes, while others are more flexible and can adhere to all of them.

There are many other frameworks that are not JavaScript based, like Laravel (PHP), Rails (Ruby), and Django or Flask (Python). But at the end of the day, since JavaScript is what browsers understand, the most popular ones, with the bigger ecosystems, are JavaScript based.

NOTE

Browsers can also run code from other languages besides JavaScript, compiled to WebAssembly.