Fork me on GitHub
#clojurescript
<
2023-04-14
>
zhuxun204:04:30

Does anyone know if there's a good library to display a nested value as a ReactJS component similar to the one rendered by CLJS devtools? I need it mostly for debugging purposes.

chrisetheridge06:04:13

i’ve used https://www.npmjs.com/package/react-json-tree and it works pretty well. you have to be able to convert the value to JSON, but react-json-tree gives you hooks to render and walk through that value any way you need

p-himik08:04:29

One such thing was literally just announced. :D https://clojurians.slack.com/archives/C06MAR553/p1681452196199939 Albeit it's not a React component. But you should still be able to easily embed it into a React application (assuming Tab exposes the API).

hifumi12321:04:58

What’s the status of es6-iterator in CLJS? I notice that the docstrings all say experimental, so I’m wondering what exactly is still “in the hammock” regarding ES6 iterators in CLJS