Fork me on GitHub
#reagent
<
2021-01-27
>
GGfpc22:01:57

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?

p-himik22:01:59

Impossible to tell without the code.

GGfpc11:01:10

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-himik16:01:24

Replace swap! with reset!.