shadow-grove

shadow-grove-

November 9, 2022
clojure
clojurescript, shadow-grove

컴포넌트 리스트 그리는 방법 # 아래와 같은 데이터와 (def book-list {:section "Today" :list [{:id "0" :name "book1" :author "doong" :description "rorlame edalkwdqd qwlmdkwmd ql"} {:id "1" :name "book2" :author "ojo" :description "heleld qwdmlkqwd awlkda wk"}]} {:section "Weekly" :list [{:id "4" :name "book5" :author "asdw" :description "asdawd"} {:id "6" :name "book7" :author "qw w w" :description "wqlwd qwldkm qwlkdasd asd"}]}) 아래와 같은 컴포넌트가 있을 때 (defc book-card [{:keys [name author description]}] (render (<< [:a {:class (css :relative :block :h-96)} [:span {:class (css :absolute :inset-0 :border-2 :border-dashed :border-black)}] [:div {:class (css :relative :flex :h-full :items-end :border-2 :border-black :bg-white :transition-transform [:hover {:transform "translate(-0. ...