Skip to content

Commit c168446

Browse files
authored
Fix/358 track typo (#362)
* fix (#357): add missing word * docs (#357): add line highlighting to increase ability for users to focus on the right line
1 parent 7662f5f commit c168446

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/guide/reactivity.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ Beyond a console log, we could do anything here we wish. We could even _not_ ret
9494

9595
Furthermore, there’s another feature Proxies offer us. Rather than just returning the value like this: `target[prop]`, we could take this a step further and use a feature called `Reflect`, which allows us to do proper `this` binding. It looks like this:
9696

97-
[//]: # 'TODO: line highlighting?'
98-
99-
```js
97+
```js{7}
10098
const dinner = {
10199
meal: 'tacos'
102100
}
@@ -114,9 +112,9 @@ console.log(proxy.meal)
114112
// tacos
115113
```
116114

117-
We mentioned before that in order to have an API that updates a final value when something changes, we’re going to have to set new values when something changes. We do this in the handler, in a function called `track`, where pass in the `target` and `key`.
115+
We mentioned before that in order to have an API that updates a final value when something changes, we’re going to have to set new values when something changes. We do this in the handler, in a function called `track`, where we pass in the `target` and `key`.
118116

119-
```js
117+
```js{7}
120118
const dinner = {
121119
meal: 'tacos'
122120
}

0 commit comments

Comments
 (0)