Overview of use-mutable-source
use-mutable-source is a minimal library (approx. 600 bytes) designed to help developers safely manage local state using mutable objects or external non-React libraries (e.g., state machines, drag-and-drop libraries, or legacy DOM libraries) within React components. It abstracts the complexity of React's strict rules regarding mutations during render, ensuring that integrations are concurrent-safe and compatible with React 18's <StrictMode> and Fast Refresh, preventing issues like 'tearing'.