Comment

Comment by laszlokorte

With lenses its possible to create component interfaces that make local and global state interchangeable. Even for focus, selection, scrollposition components use local state by default but that can replaced by a lense into a global state. This make stuff like synching two scroll positions or selectiom ranges super easy and allows for consistent manual focus management across components.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton