Docs adapted

This commit is contained in:
2026-03-30 21:20:51 +02:00
parent 474c28bd01
commit c76afa7856
5 changed files with 23 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ Creating a dedicated file allows you to export only what you need. This modulari
```javascript
// auth.js
import { $ } from "sigpro";
import SigPro from "sigpro";
// A simple global signal
export const user = $({ name: "Guest", loggedIn: false });

View File

@@ -23,7 +23,7 @@ $mount(node: Function | HTMLElement, target?: string | HTMLElement): RuntimeObje
In a Single Page Application, you typically mount your main component to the body or a root div. SigPro manages the entire view from that point.
```javascript
import { $ } from './sigpro.js';
import SigPro from 'sigpro';
import App from './App.js';
// Mounts your main App component