Skip to content

Commit 52be2e1

Browse files
authored
Clarify where to add the plugin config.
Makes a start on #47
1 parent c43d31d commit 52be2e1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

packages/babel-plugin-htm/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ A Babel plugin that compiles [htm] syntax to hyperscript, React.createElement, o
77
Basic usage:
88

99
```js
10-
[
11-
["htm", {
12-
"pragma": "React.createElement"
13-
}]
14-
]
10+
// In your babel config
11+
{
12+
presets: [
13+
["htm", {
14+
"pragma": "React.createElement"
15+
}]
16+
]
17+
}
1518
```
1619

1720
```js

0 commit comments

Comments
 (0)