Update README.md

This commit is contained in:
paku 2024-04-28 23:31:25 +09:00
parent 543e14b774
commit e314061943

View file

@ -27,6 +27,14 @@ It's
; <div></div> ; <div></div>
; <div></div> ; <div></div>
(script :defer t)
; => <script defer></script>
(script :defer nil)
; => <script></script>
(define-element view-more () (define-element view-more ()
(a props (a props
"View More")) "View More"))
@ -35,14 +43,6 @@ It's
; <a href="/detail" class="m-1">View More</a> ; <a href="/detail" class="m-1">View More</a>
(define-element custom-button (variant)
(button `(:class ,variant ,@props)
children))
(custom-button :type "submit" :variant "big" :onclick "doSomething()"
"Submit")
; <button class="big" type="submit" onclick="doSomething()">Submit</button>
``` ```
- Improved: - Improved: