Skip to content

Commit dafa652

Browse files
committed
Fix example using named parameter in call
1 parent c0eec0f commit dafa652

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ from react import jsx
2828
# For multiple paths, use the JSXTransformer class.
2929
transformer = jsx.JSXTransformer()
3030
for jsx_path, js_path in my_paths:
31-
transformer.transform(jsx_path, js_path)
31+
transformer.transform(jsx_path, js_path=js_path)
3232

3333
# For a single file, you can use a shortcut method.
34-
jsx.transform('path/to/input/file.jsx', 'path/to/output/file.js')
34+
jsx.transform('path/to/input/file.jsx', js_path='path/to/output/file.js')
3535
```
3636

3737
You can also use ``transform_string(jsx)`` method to transform strings:

0 commit comments

Comments
 (0)