tagu-tagu 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -314,7 +314,7 @@ function InitializerCallbackExample() {
|
|
|
314
314
|
document.body.appendChild(InitializerCallbackExample());
|
|
315
315
|
```
|
|
316
316
|
### `If`
|
|
317
|
-
[JSFiddle](https://jsfiddle.net/do_the_simplest/bxuqsh1d/
|
|
317
|
+
[JSFiddle](https://jsfiddle.net/do_the_simplest/bxuqsh1d/21/)
|
|
318
318
|
|
|
319
319
|
```typescript
|
|
320
320
|
import { div, If, input, span, useState } from "tagu-tagu";
|
|
@@ -329,6 +329,7 @@ function IfExample() {
|
|
|
329
329
|
return div([
|
|
330
330
|
input({
|
|
331
331
|
attr: { type: "checkbox" },
|
|
332
|
+
prop: { checked: isVisible },
|
|
332
333
|
on: { click: toggle },
|
|
333
334
|
}),
|
|
334
335
|
If(isVisible, () =>
|