pradella / react-state-managers

4 stars 0 forks source link

some question #1

Open lovetingyuan opened 3 months ago

lovetingyuan commented 3 months ago
  1. Maybe is a good idea to increase "pet" component render time, just add delay(100) to each "pet" component.
    function delay(time: number) {
      const now = Date.now();
      while (Date.now() - now < time);
    }
  2. I tested react-tracked and react-atomic-context extra. There is not much difference in the performance of these libraries(except bare native react context api).
  3. maybe you can add other state management lib like react-redux, legend-state, mobx, jotai, valtio, and give some more intresting colusion.
pradella commented 3 months ago

@lovetingyuan, thanks; actually, the examples I used are so simple. I am facing other use cases on a real project that I expect to implement, but I am still studying those state managers. In the meantime, feel free to send some pull requests.