Skip to content

<Attach>

Attach content when an expression is truthy.

import { Attach } from "rvx";

<Attach when={someCondition}>
    Hello World!
</Attach>
import { Attach } from "./rvx.js";

Attach({
    when: someCondition,
    children: "Hello World!",
});

Note

This view has no effect on the context or lifecycle of it's content.

If you need access to truthy condition results, use <Show> instead.