Skip to content

Commit 34feaf9

Browse files
committed
readme
1 parent 88db3be commit 34feaf9

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff 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(

Diff for: packages/ts-codegen/README.md

+14-4
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:
@@ -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(

0 commit comments

Comments
 (0)