diff --git a/docs/api/global.md b/docs/api/global.md index c95ee8f..84ee6e2 100644 --- a/docs/api/global.md +++ b/docs/api/global.md @@ -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 }); diff --git a/docs/api/mount.md b/docs/api/mount.md index 3789c1d..e285c9e 100644 --- a/docs/api/mount.md +++ b/docs/api/mount.md @@ -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 diff --git a/docs/index.html b/docs/index.html index 517c738..31f10a9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,8 +31,7 @@ diff --git a/docs/install.md b/docs/install.md index c7d2f55..692c8fb 100644 --- a/docs/install.md +++ b/docs/install.md @@ -49,7 +49,7 @@ bun add sigpro ```html