FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Nanostores Has a Free Framework-Agnostic State Manager — Here's How to Use It
How-ToWeb Development

Nanostores Has a Free Framework-Agnostic State Manager — Here's How to Use It

via Dev.to JavaScriptAlex Spinov2h ago

Using React AND Svelte in your micro-frontend? Sharing state between them is a nightmare — unless you use Nanostores . One state library that works everywhere. What Is Nanostores? Nanostores is a tiny state manager (334 bytes!) that works with React, Vue, Svelte, Solid, Angular, and vanilla JS. Same atoms, any framework. Quick Start npm install nanostores @nanostores/react # or @nanostores/vue, etc. // stores/counter.ts — framework-agnostic import { atom , computed } from ' nanostores ' ; export const $count = atom ( 0 ); export const $doubled = computed ( $count , count => count * 2 ); export function increment () { $count . set ( $count . get () + 1 ); } Use in React import { useStore } from ' @nanostores/react ' ; import { $count , $doubled , increment } from ' ../stores/counter ' ; function Counter () { const count = useStore ( $count ); const doubled = useStore ( $doubled ); return ( < div > < p > { count } (doubled: { doubled } ) </ p > < button onClick = { increment } > +1 </ bu

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
0 views

Related Articles

How-To

10 Things Every Software Developer Should Know (But Most Ignore)

Medium Programming • 48m ago

The Deceptively Tricky Art of Designing a Steering Wheel
How-To

The Deceptively Tricky Art of Designing a Steering Wheel

Wired • 1h ago

7 Wireshark Filters That Instantly Make You Look Like a Network Expert
How-To

7 Wireshark Filters That Instantly Make You Look Like a Network Expert

Medium Programming • 2h ago

Week 6 — No New Problems. Just Me and Everything I Already Learned.
How-To

Week 6 — No New Problems. Just Me and Everything I Already Learned.

Medium Programming • 7h ago

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)
How-To

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)

Medium Programming • 8h ago

Discover More Articles