2
(defn place-background []
[:div {:class "pbackground"
:style {:height (:fullheight @app-state)}}])
(reagent/render-appendChild [place-background]
(. js/document (getElementById "container")))
,因为如果我使用渲染组件将取代内容
但如果我要重复?例如: (draw {:width“200px:height”200px“}) (draw {:width”200px:height“200px”}) –