Skip to content

Commit

Permalink
Merge pull request #1 from jonatack/readme_define-element_code_fix
Browse files Browse the repository at this point in the history
Fix define-element code in README [skip ci]
  • Loading branch information
Bo Yao authored Jul 22, 2018
2 parents a92da58 + f54e368 commit 3138f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ All children will be flattened as if they're given inline.
(div :id id :class "big-dog"
children
"dog")
((div :id id :class "small-dog"
(div :id id :class "small-dog"
children
"dog"))))
"dog")))
```
`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`:
```
Expand Down

0 comments on commit 3138f7f

Please sign in to comment.