File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -317,16 +317,20 @@ 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:
320+ #### Use Contracts Provider Babel/TSC config
321+
322+ If you're using Babel, please make sure include ` '@babel/preset-react' ` in devDeps and presets in ` .babelrc.js ` :
321323
322324``` js
323325 presets: [
324- ' @babel/typescript' ,
325- ' @babel/env' ,
326- ' @babel/preset-react' ,
327- ]
326+ ' @babel/typescript' ,
327+ ' @babel/env' ,
328+ ' @babel/preset-react' ,
329+ ]
328330```
329331
332+ For ` tsc ` , you should set the ` jsx ` option to ` 'react' ` in your ` tsconfig.json ` .
333+
330334#### Use Contracts Hooks Usage
331335
332336Once enabled, you can get contracts very simply:
Original file line number Diff line number Diff line change @@ -317,16 +317,20 @@ 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:
320+ #### Use Contracts Provider Babel/TSC config
321+
322+ If you're using Babel, please make sure include ` '@babel/preset-react' ` in devDeps and presets in ` .babelrc.js ` :
321323
322324``` js
323325 presets: [
324- ' @babel/typescript' ,
325- ' @babel/env' ,
326- ' @babel/preset-react' ,
327- ]
326+ ' @babel/typescript' ,
327+ ' @babel/env' ,
328+ ' @babel/preset-react' ,
329+ ]
328330```
329331
332+ For ` tsc ` , you should set the ` jsx ` option to ` 'react' ` in your ` tsconfig.json ` .
333+
330334#### Use Contracts Hooks Usage
331335
332336Once enabled, you can get contracts very simply:
You can’t perform that action at this time.
0 commit comments