Skip to content

Commit 7089f56

Browse files
committed
Change readme for react query in .babelrc.js
1 parent 058c885 commit 7089f56

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,16 @@ export default function YourComponent() {
317317
};
318318
```
319319

320+
If you're using Babel, please make sure include '@babel/preset-react' in devDeps and presets in .babelrc.js:
321+
322+
```js
323+
presets: [
324+
'@babel/typescript',
325+
'@babel/env',
326+
'@babel/preset-react',
327+
]
328+
```
329+
320330
#### Use Contracts Hooks Usage
321331

322332
Once enabled, you can get contracts very simply:

0 commit comments

Comments
 (0)