Skip to content

Commit 3138f7f

Browse files
author
Bo Yao
authored
Merge pull request #1 from jonatack/readme_define-element_code_fix
Fix define-element code in README [skip ci]
2 parents a92da58 + f54e368 commit 3138f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ All children will be flattened as if they're given inline.
5454
(div :id id :class "big-dog"
5555
children
5656
"dog")
57-
((div :id id :class "small-dog"
57+
(div :id id :class "small-dog"
5858
children
59-
"dog"))))
59+
"dog")))
6060
```
6161
`dog` will be defined as a function that takes `:id` and `:size` keyword arguments. `dog` returns an user-defined element object. Inside it, `children` will be replaced with the children elements you provided when creating this `dog`:
6262
```

0 commit comments

Comments
 (0)