reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
william 2020-11-29T01:17:22.283300Z

Here's a component in which I tried to wrap cytoscape's imperative interface. Note the line (.add cyto sorted). I'm getting the error ;; => #object[TypeError TypeError: cyto.add is not a function]. What should I change?

william 2020-11-29T11:29:15.283800Z

thank you for your help @p-himik!

1👍
p-himik 2020-11-29T03:05:44.283600Z

cyto is an atom. Use (.add @cyto sorted).

1🙌
william 2020-11-29T11:29:15.283800Z

thank you for your help @p-himik!

1👍