File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -369,11 +369,11 @@ const { CwAdminFactoryClient } = contracts.CwAdminFactory;
369369
370370#### Coding Style
371371
372- | option | description |
373- | --------------------- | -------------------------------------------------------------------------------- |
374- | ` useShorthandCtor ` | Enable using shorthand constructor. Default: true |
372+ | option | description | default |
373+ | --------------------- | ---------------------------------------------- |
374+ | ` useShorthandCtor ` | Enable using shorthand constructor. | true |
375375
376- Using shorthand constructor(Might not be transpiled correctly with babel):
376+ Using shorthand constructor (Might not be transpiled correctly with babel):
377377
378378``` ts
379379 constructor (
Original file line number Diff line number Diff 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
322332Once enabled, you can get contracts very simply:
@@ -359,11 +369,11 @@ const { CwAdminFactoryClient } = contracts.CwAdminFactory;
359369
360370#### Coding Style
361371
362- | option | description |
363- | --------------------- | -------------------------------------------------------------------------------- |
364- | ` useShorthandCtor ` | Enable using shorthand constructor. Default: false |
372+ | option | description | default |
373+ | --------------------- | ---------------------------------------------- |
374+ | ` useShorthandCtor ` | Enable using shorthand constructor. | true |
365375
366- Using shorthand constructor(Might not be transpiled correctly with babel):
376+ Using shorthand constructor (Might not be transpiled correctly with babel):
367377
368378``` ts
369379 constructor (
You can’t perform that action at this time.
0 commit comments