YorkLin's Garden
Powered by
🌱Roam Garden
html
This is an "Orphan" page. Its core content has not been shared: what you see below is a loose collection of pages and page snippets that mention this page, as well as snippets of this page that were quoted elsewhere.
Referenced in
February 21st, 2021
^^由於[[data oriented 面向數據]]的作法與[[react]]希望以code來表現view的想法相似,所以[[clojure]]應用在[[react]]更加的合適,code可以更完整的表現view而不會出現[[html]]語言的[[邏輯斷層]]^^
February 21st, 2021
這讓[[data oriented 面向數據]]足以實現,我們可以用以下代碼產生[[html tag]]```clojure (def words ["green" "eggs" "and" "ham"]) (defn li-shout [x] [:li (string/uppercase x)) (concat [:ol] (map li-shout words) ; becomes [:ol [:li "GREEN"] [:li "EGGS"] [:li "AND"] [:li "HAM"]]```但是完全沒有切換到另一種語言,這使得我們可以^^使用原生的[[clojure]]一直操作[[html]],而不用思考轉換問題^^
February 21st, 2021
沒有嵌入[[html]]語言在你的程式碼中
html