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」}) –