|
|
|
|
|
by andrewstuart
814 days ago
|
|
>> In Preact, when a signal is passed down through a tree as props or context, I have found that passing props makes React-like applications very complex and messy and props are to be avoided as must as practical. The mechanism for avoiding props is Custom events. It concerns me to see the concept of signals being passed as props when surely signals/events should be removing the need for props? |
|
React signals have become my go to state management tool. So easy to use and very flexible.
1: https://www.npmjs.com/package/@preact/signals-react