๐ง๐ต๐ฒ ๐ฆ๐ถ๐ด๐ป๐ฎ๐น ๐ฆ๐๐ฆ๐ง๐ฒ๐บ: ๐ ๐ ๐๐ผ๐๐ฟ๐ป๐ฒ๐ I built a signal system from scratch. Here's what I learned:
- Signals are not just another state management tool
- They challenge the assumption that the Virtual DOM must be at the center of frontend architecture
- Signals touch more than state management - they ask how data dependencies are tracked and updated
You may have heard people say that Jotai or atomic state is the same as signals. But they are based on different design philosophies.
- Atomic state splits state into small units, but does not track dependencies
- Signals split state and add dependency tracking
Some people think signals are useless. But they are worth discussing.
- Signals can achieve fine-grained updates through runtime-level dependency tracking
- They can avoid unnecessary recomputation
If you want to design the foundation of a framework well, you must understand JavaScript fundamentals and computer science.
- Frameworks will come and go, but fundamental knowledge and mental models are what allow you to go further
- Learn the logic underneath a framework, not just how to use it
Source: https://dev.to/luciano0322/what-i-learned-after-building-a-signal-system-from-scratch-280p