You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaScript expression fenced code blocks are implicitly wrapped with a call to [`display`](#display(value)). For example, this arithmetic expression displays implicitly:
205
+
JavaScript expression fenced code blocks are implicitly wrapped with a call to [`display`](#display-value). For example, this arithmetic expression displays implicitly:
206
206
207
207
```js echo
208
208
1+2// implicit display
@@ -297,7 +297,7 @@ The current width of the main element in pixels as a reactive variable. A fenced
297
297
width
298
298
```
299
299
300
-
See [`Generators.width`](./lib/generators#width(element)) for implementation.
300
+
See [`Generators.width`](./lib/generators#width-element) for implementation.
301
301
302
302
## now
303
303
@@ -307,4 +307,4 @@ The current time in milliseconds since Unix epoch as a reactive variable. A fenc
307
307
now
308
308
```
309
309
310
-
See [`Generators.now`](./lib/generators#now()) for implementation.
310
+
See [`Generators.now`](./lib/generators#now) for implementation.
Copy file name to clipboardExpand all lines: docs/reactivity.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ Values that change over time — such as interactive inputs, animation parameter
126
126
127
127
<divclass="note">As with implicit await and promises, implicit iteration of generators only applies <i>across</i> code blocks, not <i>within</i> a code block.</div>
128
128
129
-
As an example, here’s an HTML input element. By passing it to [`Generators.input`](<../lib/generators#input(element)>), we can define a generator that yields the input’s value each time it changes.
129
+
As an example, here’s an HTML input element. By passing it to [`Generators.input`](<../lib/generators#input-element>), we can define a generator that yields the input’s value each time it changes.
130
130
131
131
<inputid="nameInput">
132
132
@@ -298,7 +298,7 @@ The `view` function does two things:
298
298
1. it [displays](../javascript#explicit-display) the given DOM *element*, and then
299
299
2. returns a corresponding value generator.
300
300
301
-
The `view` function uses [`Generators.input`](../lib/generators#input(element)) under the hood. As shown above, you can call `Generators.input` directly, say to declare the input as a top-level variable without immediately displaying it.
301
+
The `view` function uses [`Generators.input`](../lib/generators#input-element) under the hood. As shown above, you can call `Generators.input` directly, say to declare the input as a top-level variable without immediately displaying it.
0 commit comments