reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
GGfpc 2021-01-27T22:23:57.021400Z

This probably a really easy question to solve. I have a hiccup form and I want to add a child to it after a button press, so I define an atom and update that atom with the child hiccup when the button is pressed. However, when the dom reloads, the only thing that shows up is the word "div". What do I need to do to ensure this works?

GGfpc 2021-01-28T11:47:10.022100Z

Here is the code in question. https://gist.github.com/GoncaloGarcia/c567b68e3b098e71f53307a57f73dcba I was expecting the base-component to render the heatmap component as well once the heatmap atom is swaped by the ajax call

p-himik 2021-01-28T16:09:24.022300Z

Replace swap! with reset!.

p-himik 2021-01-27T22:26:59.021500Z

Impossible to tell without the code.