Update Docs
This commit is contained in:
@@ -20,7 +20,7 @@ when(
|
||||
|
||||
**Returns:** A `div` with `style="display:contents"` that acts as an anchor for the dynamic content. This element is part of the DOM and will be replaced/updated automatically.
|
||||
|
||||
> **Note:** The function name is `when` (lowercase). It is exported from SigPro and also available globally after importing.
|
||||
> **Availability:** `when` is exported from the SigPro module. In **ESM** you must import it (`import { when } from 'sigpro'`) or inject all globals via `sigpro()`. In the **IIFE** classic script, it is automatically available on `window`. The examples below assume the function is already in scope.
|
||||
|
||||
---
|
||||
|
||||
@@ -129,4 +129,4 @@ const App = () =>
|
||||
]);
|
||||
|
||||
mount(App, '#app');
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user