Skip to content

Commit

Permalink
Update docs.md (#529)
Browse files Browse the repository at this point in the history
Added install instruction for use with a build step.
  • Loading branch information
jonesnc authored Apr 17, 2024
1 parent de5c382 commit 1e65fb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions www/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ Hyperscript is a dependency-free JavaScript library that can be included in a we
<script src="https://unpkg.com/[email protected]"></script>
~~~

If you are using a build step:

~~~ js
import _hyperscript from 'hyperscript.org';

_hyperscript.browserInit();
~~~

After you've done this, you can begin adding hyperscript to elements:

~~~ html
Expand Down

0 comments on commit 1e65fb1

Please sign in to comment.