Actualizar docs/README.md
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s
This commit is contained in:
@@ -35,7 +35,7 @@ mount(() => div([ button({ onclick: () => count(count()+1) }, count) ]), '#app')
|
||||
</script></code></pre>
|
||||
<p class="mb-2"><strong>🔧 ESM + Global injection:</strong> If you want the global helpers but still use <code>type="module"</code>, call <code>sigpro()</code>.</p>
|
||||
<pre class="bg-base-300/30 p-4 rounded-lg"><code><script type="module">
|
||||
import { sigpro } from 'https://cdn.jsdelivr.net/npm/sigpro@1.2.19/+esm';
|
||||
import { sigpro } from 'https://cdn.jsdelivr.net/npm/sigpro@latest/+esm';
|
||||
sigpro(); // now $, div, button, etc. are global
|
||||
</script></code></pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user