UPDATE – Simple Responsive Portfolio Svelte

Category: | Posted on:January 26, 2026

Refactored the code in the Simple Responsive Portfolio Svelte to use updated Svelte 5 syntax for state and props.

Svelte 5 Syntax

Svelte 5 retired the prior export syntax. Before, the parent would establish state with a let variable declaration:

let variableName = true;

A child component could then receive it with an export statement:

export let variableName;

The new syntax for establishing state and passing props uses runes. Components establishing mutable state use the $state() rune.

let {variableName} = $state(true);

Components on the receiving end can use the $props() rune.

let {variableName} = $props();
Tags:

Related Logs


  • NEW PROJECT – Simple Responsive Portfolio Svelte

    January 23, 2026

    The Simple Responsive Portfolio Svelte is a remake of my Simple Responsive Portfolio project in Svelte 5. Objective I need to brush up on my Svelte skills since it updated to v5. My last foray was a photo album for my wedding that used Svelte Cloudinary to handle uploads. This project was just a simple […]

    Continue Reading
  • RIP Glitch.com

    January 12, 2026

    Glitch.com, the service I was using to host some of my projects for free, has terminated its hosting services. I didn’t find out until after the grace period, so everything I had up there is gone, but it was all just copies of existing repos anyway. I’ve had to migrate the original Game Picker 9000, […]

    Continue Reading
  • NEW PROJECT – Catholic Liturgical Date Checker

    May 29, 2024

    The Liturgical Date Checker project uses the Liturgical Calendar API to display information about Catholic Holy days. On page load it fetches info for today, tomorrow, and yesterday. It also has a search field that will return celebration info about a specific date. Objective This is just more basic API practice. I started this in […]

    Continue Reading