Fork me on GitHub

Hey reframers, got a (probably) noob question: how can I use normal reagent atoms in my components? I’ve got a component that just needs to progress through a couple of steps (no submitting or validation, just hiding/showing HTML) and I’m trying to use this (standard?) reagent approach but it’s not working. Here’s my 10-line component - I can see that the atom is actually getting updated (if I log it afterwards, it has the new :stage2 value), but my view isn’t updating.


I assume I need to use a reaction somewhere? But I haven’t been able to work out where


Hey @heeton your component should be a form-2 component as explained in You basically need to return a fn that closes over the let bindings and will return your div when called


@nberger: yes! Thankyou simple_smile


Cool, no problem!