Zack Pouget

Svelte

Svelte is an easy to use alternative to React that I've grown to love. I personally find it to be easier to use, but I also find it to be more performant. Both of these are due to Svelte's compiler, which not only allow Svelte to add to and modify vanilla Javascript and Typescript, but also removes the need for a virtual DOM like React

Key Skills

Example Code

Here's an example Svelte component that increments a counter whenever a button is clicked. Notice how Svelte's reactivity allows direct variable updates without hooks or a virtual DOM.

<script lang="ts">
  let count = 0;

  function increment() {
    count += 1;
  }
</script>

<div class="p-4 border rounded-md shadow-sm text-center">
  <h2 class="text-xl font-semibold mb-2">Svelte Counter Example</h2>
  <p class="text-gray-700 mb-4">Count: {count}</p>
  <button
    on:click={increment}
    class="px-4 py-2 bg-orange-600 text-white rounded hover:bg-orange-700 transition"
  >
    Increment
  </button>
</div>