File tree 2 files changed +18
-8
lines changed
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;
369
369
370
370
#### Coding Style
371
371
372
- | option | description |
373
- | --------------------- | -------------------------------------------------------------------------------- |
374
- | ` useShorthandCtor ` | Enable using shorthand constructor. Default: true |
372
+ | option | description | default |
373
+ | --------------------- | ---------------------------------------------- |
374
+ | ` useShorthandCtor ` | Enable using shorthand constructor. | true |
375
375
376
- Using shorthand constructor(Might not be transpiled correctly with babel):
376
+ Using shorthand constructor (Might not be transpiled correctly with babel):
377
377
378
378
``` ts
379
379
constructor (
Original file line number Diff line number Diff line change @@ -317,6 +317,16 @@ export default function YourComponent() {
317
317
};
318
318
```
319
319
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
+
320
330
#### Use Contracts Hooks Usage
321
331
322
332
Once enabled, you can get contracts very simply:
@@ -359,11 +369,11 @@ const { CwAdminFactoryClient } = contracts.CwAdminFactory;
359
369
360
370
#### Coding Style
361
371
362
- | option | description |
363
- | --------------------- | -------------------------------------------------------------------------------- |
364
- | ` useShorthandCtor ` | Enable using shorthand constructor. Default: false |
372
+ | option | description | default |
373
+ | --------------------- | ---------------------------------------------- |
374
+ | ` useShorthandCtor ` | Enable using shorthand constructor. | true |
365
375
366
- Using shorthand constructor(Might not be transpiled correctly with babel):
376
+ Using shorthand constructor (Might not be transpiled correctly with babel):
367
377
368
378
``` ts
369
379
constructor (
You can’t perform that action at this time.
0 commit comments