This article explores Svelte’s $effect.root rune, detailing its purpose, usage, and common misconceptions. It covers scenarios where $effect.root is essential, explains its lifecycle considerations, and offers alternatives.
Read nowDevelopment
& Design
Svelte in Depth The $effect.root rune Svelte in Depth The $effect.tracking rune Svelte 5 introduces $effect.tracking, a rune to manage tracking contexts, such as in effects or templates. This post explains why this rune was added and the problems it solves.
Read nowBuilding an Interactive 3D Hero Animation A detailed walkthrough of building and optimizing a WebGL particle animation, from initial three.js prototype to a custom implementation using binary files and web workers for maximum performance.
Read nowSwift and SwiftUI for Web Developers Labels Explore Swift's approach to function labels, enhancing readability and flexibility compared to TypeScript. Learn the benefits of naming conventions and overloading for clearer, more natural code.
Read nowSwift and SwiftUI for Web Developers Closures Exploring the elegance of Swift's closures, this post compares them to TypeScript, highlighting features like closure expression syntax, type inference, shorthand argument names, and the use of trailing closures for concise and readable code.
Read nowSwift and SwiftUI for Web Developers Introduction Discover how Swift's features, from variables to asynchronous programming, make it an attractive option not just for Apple's ecosystem but for any web dev looking to expand their toolkit.
Read nowGet Full Type Support With Plain JavaScript Learn how you can reap the benefits of TypeScript and still write plain JavaScript.
Read nowAccessible hamburger buttons without JavaScript Learn how to create an accessible hamburger button with pure HTML and CSS.
Read nowCSS resets and global styles in web components If you’ve read my previous article on extracting Svelte Components as Web Components, you might have seen a note about problems to be solved with CSS resets and global styles.
Read nowSvelte Components as Web Components This post shows how to write an app in Svelte Kit, while still being able to export and use individual components on other websites (that don’t use Svelte).
Read nowTo Close or Not to Close A deep dive into the origins of HTML to answer the burning question whether <br> elements should be closed with a slash like this <br/>.
Read now