Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oamaok committed Dec 4, 2023
1 parent 51bc942 commit b58e30b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ A lightweight JSX-based UI framework with a freely mutable, boilerplate-free glo
Kaiku is packaged to be easily used in both browser and as a module, no build tools required:

```html
<script src="https://unpkg.com/kaiku"></script>
<script>
const { h, render, createState } = kaiku
const state = createState({ greeting: 'Hello world' })
<script type="module">
import { h, render, createState } from 'https://unpkg.com/kaiku'
const state = createState({ greeting: 'Hello world' })
const App = () => h('span', null, state.greeting)
render(h(App), document.body)
Expand Down

0 comments on commit b58e30b

Please sign in to comment.