How do I switch between different panels of a larger app?
Your `app-db` could have an `:active-panel` key containing an id for the panel being displayed.
When the user does something navigation-ish (selects a tab, a dropdown or something which changes the active panel), then the associated event and dispatch look like this:
```clj
(re-frame/reg-event-db
:set-active-panel
(fn [db[_value]]
(assoc db:active-panelvalue)))
(re-frame/dispatch
[:set-active-panel:panel1])
```
A high level reagent view has a subscription to :active-panel and will switch to the associated panel.