Fork me on GitHub
#reagent
<
2016-09-30
>
mikethompson00:09:16

@novakboskov Reagent components don't tend to handle state internally, the same way as React components do. The state tends to come from the outside via cursors or props.

mikethompson00:09:49

Having said that, Form-2 components tend to be the way that you manage state "internally". You close over an atom which holds the "internal state".

mikethompson00:09:11

There is also the re-frame architecture which is similar to Redux, if you want a more disciplined/constrained approach to state management.

geraldodev00:09:47

@mikethompson Thank you very much for re-frame, and for showing to us the hidden gem that reagent is.

mikethompson00:09:05

@geraldodev my pleasure. It has been an interesting and fun ride

novakboskov08:09:49

@mikethompson So many good words on re-frame, I should definitely look it up.