frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Reusable UI components via property-level state with React and Jotai

2•ivanglpz•1h ago
This work is implemented using React with Next.js, React Konva for canvas-based rendering, and Jotai as the state management layer.

The core architectural decision is to model UI elements using property-level state separation instead of a single monolithic state per element. Each relevant property is represented as an independent atom, which significantly reduces unnecessary React re-renders. Only the properties that actually change trigger updates, rather than invalidating the entire element state.

This architecture was introduced recently to enable new functionality without increasing state complexity or processing overhead. The reusable component mechanism described here is a direct consequence of that design.

When an element is reused, the copied instance does not duplicate state. Instead, it stores only the identifier of the source element. At render time, the copied instance resolves the source element’s properties dynamically using that identifier. Because state is separated by property, updates remain synchronized without shared mutable state or redundant updates.

If the referenced source element is removed, the system falls back to the original element definition. This avoids broken references and ensures predictable behavior across element lifecycle changes.

For visual context, a short demo video is available here: https://x.com/ivanglpz/status/2012169953168838940?s=20

This approach results in reduced rendering overhead, clear separation of responsibilities, and a scalable foundation for building synchronized, reusable UI components.

Is Tehching Hsieh the most extreme performance artist ever?

https://www.theguardian.com/artanddesign/2026/jan/14/tehching-hsieh-most-extreme-performance-arti...
1•bookofjoe•53s ago•0 comments

Ctrl+F All of Manhattan

https://searchable.city
1•seekthenfind•1m ago•0 comments

Show HN: Grow Developer – An idle web game about the journey to a startup 'Exit'

https://www.devgrow.co.kr/en
1•devjun_jun•1m ago•0 comments

Some

https://some.3b1b.co/
2•Tomte•3m ago•0 comments

Eatmydata – transparently disable fsync() and other data-to-disk sync calls

https://manpages.debian.org/testing/eatmydata/eatmydata.1.en.html
3•nateb2022•3m ago•0 comments

Launch HN: Indy (YC S21) – A support app designed for ADHD brains

https://www.shimmer.care/indy-redirect
3•christalwang•6m ago•0 comments

They've pickled each others' brains

https://sf.gazetteer.co/theyve-pickled-each-others-brains
3•mathgenius•13m ago•0 comments

Skills Manager for Your Coding Agent

https://github.com/kasperjunge/agent-resources
3•aakast•14m ago•1 comments

AI and the Corporate Capture of Knowledge

https://www.schneier.com/blog/archives/2026/01/ai-and-the-corporate-capture-of-knowledge.html
3•cyunker•14m ago•0 comments

The Reasons New Yorkers' Groceries Cost So Much

https://www.vitalcitynyc.org/articles/nyc-grocery-cost-explained
1•mhb•15m ago•0 comments

Show HN: DeepSeeds – An AI tool that generates structured SEO content briefs

https://deepseeds.net/
2•Waffle2180•15m ago•0 comments

Scripily Restoration

https://restoration.scripily.com
1•thisarajay•15m ago•0 comments

Improving Morning Efficiency Through Better Organisation with Dressing Table

https://dreamhomestore.co.uk/collections/dressing-tables
1•homedecorart01•16m ago•1 comments

6-Day and IP Address Certificates Are Generally Available

https://letsencrypt.org/2026/01/15/6day-and-ip-general-availability.html
2•todsacerdoti•16m ago•1 comments

Why There's No Single Best Way to Store Information

https://www.quantamagazine.org/why-theres-no-single-best-way-to-store-information-20260116/
1•jandrewrogers•16m ago•0 comments

The Cost of "Just One More Node"

https://hashrocket.substack.com/p/the-hidden-cost-of-just-one-more
1•thehashrocket•16m ago•1 comments

String Theory Can Now Describe a Universe That Has Dark Energy

https://www.quantamagazine.org/string-theory-can-now-describe-a-universe-that-has-dark-energy-202...
1•jandrewrogers•17m ago•0 comments

Elon Musk's X down for users

https://www.bbc.com/news/live/cp8456m8mnkt
3•ndsipa_pomu•17m ago•1 comments

Steveyegge/Gastown

https://github.com/steveyegge/gastown
1•geoffbp•18m ago•0 comments

Knut Hamsun

https://en.wikipedia.org/wiki/Knut_Hamsun
1•treetalker•18m ago•1 comments

Data centers are amazing. Everyone hates them

https://www.technologyreview.com/2026/01/14/1131253/data-centers-are-amazing-everyone-hates-them/
2•Brajeshwar•19m ago•0 comments

Windows App forgets how to log in with first security update of the year

https://www.theregister.com/2026/01/15/windows_app_credential_failures/
3•Brajeshwar•19m ago•0 comments

I Turn Scientific Renderings of Space into Art

https://nautil.us/i-turn-scientific-renderings-of-space-into-art-1261733/
2•Brajeshwar•19m ago•0 comments

Programming pearls: a sample of brilliance (1987) [pdf]

https://dl.acm.org/doi/epdf/10.1145/30401.315746
1•barishnamazov•20m ago•0 comments

Chinese EVs inch closer to the US as Canada slashes tariffs

https://techcrunch.com/2026/01/16/chinese-evs-inch-closer-to-the-us-as-canada-slashes-tariffs/
6•speckx•20m ago•1 comments

Show HN: SkillRisk – Free security analyzer for AI agent skills

https://skillrisk.org/free-check
2•elevenapril•21m ago•3 comments

The Math Behind Moneyball

https://richardmoss1998.medium.com/the-math-behind-moneyball-fd362d57c3e9
1•karlding•22m ago•0 comments

I just spoke with a friend in Iran and things are worse than media reports

https://twitter.com/pawelwargan/status/2011769557178896876
3•lr0•22m ago•1 comments

Make a Living in a Bad Job Market

https://www.wired.com/story/why-there-arent-enough-electricians-and-plumbers-to-build-ai-data-cen...
1•urup2l8•23m ago•1 comments

Sleep Machine

https://zzz.jordanstephens.com/
2•iamjs•23m ago•0 comments