Skip to content

Commit bdc6b07

Browse files
change readme
1 parent bda062f commit bdc6b07

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,17 @@ Lint: [eslint](https://eslint.org/) with [custom config](./eslint.config.js) (ba
134134

135135
Bad:
136136
```javascript
137-
function useSomething({ bigObject }) {
138-
// using bigObject.property
139-
// using bigObject.anotherProperty
137+
function useSomething(bigObject) {
138+
// bigObject.property, bigObject.anotherProperty
140139
}
141-
142-
useSomething({ bigObject })
143140
```
144141
```javascript
145142
<ChildComponent :parent="parent" />
146143
```
147144
Good:
148145
```javascript
149146
function useSomething({ property, anotherProperty }) {
150-
// using property
151-
// using anotherProperty
147+
// property, anotherProperty
152148
}
153149
154150
useSomething({

0 commit comments

Comments
 (0)