Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimNovich authored Nov 17, 2020
1 parent 4878f4c commit 530dd8b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,9 @@ The default values for the `options` object are shown below:
Below is an advanced usage example:

```javascript
let ast = transform(jsx_ast, { factory: "h", quotePropNames: true });
let ast = transform(jsx_ast, { factory: "React.createElement", quotePropNames: false });
```

Where
- `jsx_ast` {Object} - ESTree-compilant JSX AST to transform to regular JS AST
- `factory` {String} - factory function to use, e.g. `h`, `m`, `React.createElement`
- `quotePropNames` {Boolean} - if set to true then property names will be put into quotes

Please note that this tool only converts JSX AST into regular ES5-compliant JavaScript AST. If you want to transpile your source code, check out [mxn-jsx-transpiler](https://github.com/ZimNovich/mxn-jsx-transpiler) or use a code like:

```javascript
Expand Down

0 comments on commit 530dd8b

Please sign in to comment.