helix

kennytilton 2021-07-20T19:30:47.206400Z

This https://lilac.town/writing/hooks-and-atoms/ was very helpful, @lilactown, as I work on integrating my state management hack with React. Thx! It confirmed my concern over ratoms, and my guess that my integration should "play well with others (React)". My plan is to have my state management scheme trigger a setState for views that have experienced a local change based on global state changing, achieving the locality of Reagent without forcing an entire tree to re-render because state got lifted to a common parent way up yonder. Your post ends with Helix described as "a different approach to using React with ClojureScript.". Were you planning on doing sth different in re React state management? ie, Something other than useState, props, and Context?

lilactown 2021-07-20T22:52:08.206700Z

not really

lilactown 2021-07-20T22:52:37.207300Z

I meant that it is different, in that it just uses React state 😛 vs. reagent, rum, etc. that hold things in atoms outside of the tree

lilactown 2021-07-20T22:53:35.207800Z

> My plan is to have my state management scheme trigger a setState for views that have experienced a local change based on global state changing, achieving the locality of Reagent without forcing an entire tree to re-render because state got lifted to a common parent way up yonder. in what way is what you're doing different than reagent?