Skip to content

Commit

Permalink
typo in creating-components.md (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
saguywalker committed May 31, 2023
1 parent 34811a9 commit b3a7473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/creating-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ use the `fnc` macro.
```clojure
(let [my-button (fnc [{:keys [class on-click] :as props}]
(d/button {:class class :on-click on-click}))]
($ my-button {:class ["foo" "bar] :on-click #(js/alert "hi")})
($ my-button {:class ["foo" "bar"] :on-click #(js/alert "hi")})
```

## Class Components
Expand Down

0 comments on commit b3a7473

Please sign in to comment.