diff --git a/README.md b/README.md index b081ec1..367ed60 100644 --- a/README.md +++ b/README.md @@ -395,7 +395,7 @@ not the class should stay or go on the vnode. h("a", { class: { active: true, selected: false } }, "Toggle"); ``` -In JSX, you can use the `class` key. +In JSX, you can use the `class` prop. ```jsx
@@ -410,7 +410,7 @@ Allows you to set properties on DOM elements. h("a", { props: { href: "/foo" } }, "Go to Foo"); ``` -In JSX, you can use the `props` key. +In JSX, you can use the `props` prop. ```jsx @@ -433,7 +433,7 @@ Same as props, but set attributes instead of properties on DOM elements. h("a", { attrs: { href: "/foo" } }, "Go to Foo"); ``` -In JSX, you can use the `attrs` key. +In JSX, you can use the `attrs` prop. ```jsx
@@ -463,7 +463,7 @@ Allows you to set custom data attributes (`data-*`) on DOM elements. These can t h("button", { dataset: { action: "reset" } }, "Reset"); ``` -In JSX, you can use the `dataset` key. +In JSX, you can use the `dataset` prop. ```jsx
@@ -825,7 +825,7 @@ import { jsx } from "snabbdom"; const node = (
- I was created with JSX. + I was created with JSX
); ```