ended3월 17일· 1 sources

Sharing State Across Packages and Apps in a React Monorepo (Web + Mobile)

React 모노레포(웹 + 모바일)에서 패키지와 앱 간 상태 공유하기

Why it matters

The article addresses the challenge of sharing state across packages and apps in a React monorepo spanning web and mobile platforms. It introduces shared-state-bridge, a lightweight (~1.2 KB) cross-package state store that uses named bridges, built-in WebSocket sync, and Symbol.for for global resolution. The library supports React 18 via useSyncExternalStore, offers persistence for both localStorage and AsyncStorage, and is fully typed with zero dependencies.

1
Sources
+0
24h
Growth
188d
Active
shared-state-bridgeReact Monorepocross-app stateWebSocket syncuseSyncExternalStore

Sources

Related Issues