Ovie Okeh
May 21, 2019 ⋅ 8 min read

Truly reactive programming with Svelte 3.0

Ovie Okeh Programming enthusiast, lover of all things that go beep.

Recent posts:

Implementing Infinite Scroll In Next Js With Server Actions

Implementing infinite scroll in Next.js with Server Actions

Infinite scrolling in Next.js no longer requires external libraries — Server Actions let us fetch initial data directly on the server.

Rahul Chhodde
Apr 19, 2024 ⋅ 10 min read
Integrating Django Templates With React For Dynamic Webpages

Integrating Django templates with React for dynamic webpages

Create a dynamic demo blog site using Django and React to demonstrate Django’s server-side functionalities and React’s interactive UI.

Kayode Adeniyi
Apr 18, 2024 ⋅ 7 min read
Using Aoi Js To Build A Bot For Discord

Using aoi.js to build a bot on Discord

Explore how the aoi.js library makes it easy to create Discord bots with useful functionalities for frontend applications.

Rahul Padalkar
Apr 17, 2024 ⋅ 9 min read
Web Components Adoption Guide: Overview, Examples, And Alternatives

Web Components adoption guide: Overview, examples, and alternatives

Evaluate Web Components, a set of standards that allow you to create custom HTML tags for more reusable, manageable code.

Elijah Asaolu
Apr 16, 2024 ⋅ 11 min read
View all posts

5 Replies to "Truly reactive programming with Svelte 3.0"

  1. Mistake in this line of the vanilla.js code?
    bar = foo + 10 // now bar becomes 25
    But thanks for an excellent article, especially with regard to summarising React’s shortcomings. Looking forward to seeing what Svelte can do over the next few years

  2. Thank you! Nice Article. Understood the point about using topology much better. Good addition to the presentation of Rich Harris. You state the following:

    “Wait, what? A compiler? Yes — a compiler. It’s such a bloody good idea that I don’t know why it wasn’t so obvious until now, and I’ll tell you why I think it’s so cool.”

    Exactly what I was thinking reading about Svelte. Relative new to the javascript world and surprised by the number of frameworks, tools etc. Very very complex, certainly for an old man having a C background. Of course, I love compilers! I love small footprints and software with good performance.

    Have fun with the computer and javascript.

  3. Thank you!
    But like the first commentor said, there is something wrong with your example and that point is the one that shows how Svelte is reactive:

    let foo = 10;
    $: bar = foo + 10; // bar is now 20
    console.log(bar); // 20 <==
    foo = 15;
    console.log(bar); // 20 <== bar is STILL 20

    Because this doesn't work, it's hard to see how they achieve reactiveness.


Leave a Reply