This monorepo includes experimental projects I use to explore and learn about frontend technologies. Although some have tests to verify functionality, they are not meant for production use.
A simple state management system to achieve fine-grained reactivity. Designed to work with vanilla JavaScript, but can be used with any framework via custom adapters. The goal is to provide basic primitives to build a reactive state graph that can be attached to the user interface.
The Signal is the basic primitive. The value can be gotten and set at any point in time, but listeners can be registered to be notified when a new value exists.
The ComputedSignal can be used to combine values or subscribe to a subset of a complex object. The value cannot be set manually; rather, it updates automatically when any of the dependencies change.
The adapter that integrates the reactive system of the signal-core package into React.
This example project demonstrates how React's built-in state management can lead to unnecessary rerenders and how we can enhance performance by utilizing more advanced techniques. The app uses react-scan to visualize these rerenders.
This example demonstrates how easily can we use signals in a jQuery project.