Fork me on GitHub
#helix
<
2020-06-08
>
fabrao13:06:31

Hello all, is there any way to inspect the state from REPL?

Aron13:06:10

react dev tools

lilactown15:06:36

There isn’t a way to do if from the REPL yet

Aron12:06:06

react dev tools you can select the hooks' state, then store as a global variable and you can use it from your repl. eg. (prn js/$reactTemp1)

❤️ 8
fabrao16:06:21

do you think is that possible doing something like re-frisk?

Aleed23:06:44

hey ya’ll, been working on a lib to make it easier to wrap entire react libraries with a single macro call. also includes a Hiccup compiler since I prefer composing components as vector data but couldn’t extend Hicada the way I needed to. goal is to use it together with Helix’s hooks and dev support. https://github.com/alidlo/rewrap

lilactown23:06:16

@alidcastano would this be how you use it with helix?

(interop/inter-comps {:emitter '$
                      :interns [View Text]})

Aron12:06:06

react dev tools you can select the hooks' state, then store as a global variable and you can use it from your repl. eg. (prn js/$reactTemp1)

❤️ 8