json.human.js icon indicating copy to clipboard operation
json.human.js copied to clipboard

Componification of json.human.js

Open dbrrt opened this issue 7 years ago • 1 comments

It would be nice to have like a HOC Component that Renders the JSON under sub components using modern framework/ui libraries such as vue, react, ember etc...

Do you think that I can be a feature of this library, or a sort of wrapper would be required to make this feasible?

dbrrt avatar Sep 06 '17 22:09 dbrrt

if you change the document.createElement for React's createElement then you can put the result inside a virtual dom. This will also work for preact and friends.

for the others I don't know

marianoguerra avatar Sep 07 '17 09:09 marianoguerra