Hi! how do I disable a button once it has been clicked once?
check out the "counter" example on https://github.com/tonsky/rum
instead of displaying the number of clicks, you can make it render in the appropriate enabled/disabled state
[:button.butans {:disabled (if (= true @quiz-submit-pressed) true false)
looks OK?
Oh, it won't actually update the disabled state that way o.o
unless it draws again
well, even drawing again it did'n change the components...
hrm
Oh hey I got it! I forgot to wrap the atom in (rum/react ~ )
NVM thanks