 (rum/defcs derived-view-react-both < rum/reactive (d/drv :inc :as-map :sum) (d/drv :base)
   [s]
   [:div
-   [item "Both mixin varians, " [:code "react-drvs"] " and singular " [:code "react"]]
-   (let [{:keys [base inc]} (d/react-drvs s :base :inc)]
+   [item "Both mixin varians, " [:code "react-all"] " and singular " [:code "react"]]
+   (let [{:keys [base inc]} (d/react-all s :base :inc)]
      [container
       [item ":base "   (-> base pr-str)]
       [item ":inc "    (-> inc pr-str)]

    [item ":as-map " (-> (d/react s :as-map) pr-str)]
    [item ":sum "    (-> (d/react s :sum) pr-str)]]])

(rum/defcs derived-view-react-drvs-all < rum/reactive (d/drv :inc :as-map :sum) (d/drv :base)
  [s]
  [:div
   [item "Both mixin varians, " [:code "react-drvs"]]
   (let [{:keys [base inc as-map sum]} (d/react-drvs s)]
     [container
      [item ":base "   (-> base pr-str)]
      [item ":inc "    (-> inc pr-str)]

  [:div.cf
   [:div.fl.w-50.pa2 (derived-view)]
   [:div.fl.w-50.pa2 (derived-view-variadic-mixin)]
   [:div.fl.w-50.pa2 (derived-view-react-all)]
   [:div.fl.w-50.pa2 (derived-view-react-both)]])

(rum/defc spec-via-mixin < (d/rum-derivatives (drv-spec *state))
  []
  [:div
   [:h3.mb4.pa2 "Derviatives spec passed to mixin"]
   (drv-variant-table)])

(rum/defc spec-via-args < (d/rum-derivatives* first)
  [spec]
  [:div
   [:h3.mb4.pa2 "Derviatives spec extracted from arguments"]
