Skip to content

Commit e792a74

Browse files
authored
Merge pull request #133 from JodiWarren/patch-1
Clarify where to add the plugin config.
2 parents c43d31d + 2dd4f54 commit e792a74

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/babel-plugin-htm/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ A Babel plugin that compiles [htm] syntax to hyperscript, React.createElement, o
44

55
## Usage
66

7-
Basic usage:
7+
In your Babel configuration (`.babelrc`, `babel.config.js`, `"babel"` field in package.json, etc), add the plugin:
88

99
```js
10-
[
11-
["htm", {
12-
"pragma": "React.createElement"
13-
}]
14-
]
10+
{
11+
"plugins": [
12+
["htm", {
13+
"pragma": "React.createElement"
14+
}]
15+
]
16+
}
1517
```
1618

1719
```js

0 commit comments

Comments
 (0)