(def state (atom 0)) (rum/defc view < rum/reactive [state] [:div [:button {:on-click #(swap! state dec)} "-"] [:span (rum/react state)] [:button {:on-click #(swap! state inc)} "+"]]) (run/mount (view state) (js/document.getElementById "app"))