react

lilactown 2021-08-28T00:13:31.001700Z

OK, here's a first cut: https://github.com/lilactown/react-repl

❤️ 1
lilactown 2021-08-28T14:01:18.003Z

I should add a warning that says "this relies on internal implementation details of React and is subject to break on any version update. I've tested against React 17.0.2. Subsequent releases may correspond to different versions."

lilactown 2021-08-28T14:01:54.003500Z

also, in React 18 updates: https://github.com/reactwg/react-18/discussions/86

dominicm 2021-08-28T14:05:44.003900Z

Presumably the same internals are used by react-dev-tools so they should be sufficiently stable?

lilactown 2021-08-28T14:06:22.004200Z

that's right

lilactown 2021-08-28T14:06:36.004600Z

I started this project on React 16.x and it hasn't changed much since then AFAICT

lilactown 2021-08-28T14:07:48.005700Z

but of course react-dev-tools and React can coordinate their releases, since they're both developed by the same team. I on the other hand will only find out if things are broken if I try them out 😄

dominicm 2021-08-28T14:12:08.006300Z

For react 16 I believe they had to issue a notice saying "oh and btw, we just broke react-dev-tools, here's the legacy version if you want it" or something to that effect?

lilactown 2021-08-28T14:14:15.007100Z

i have a vague recollection of that but I also just read an article stating that react-dev-tools v4 supports back to React 13

lilactown 2021-08-28T14:14:30.007500Z

but yeah if you're on < 13 you presumably have to use react-dev-tools v3

lilactown 2021-08-28T14:15:09.008100Z

React 16 was the big architectural change to use fibers instead of the old vdom approach

lilactown 2021-08-28T16:55:02.008500Z

looks like to make reagent concurrency safe we'll need to implement some sort of ref counting: https://twitter.com/lilactown_/status/1431623810638286851