Skip to content

Commit

Permalink
feat(content): add render app > qwik (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dailaim authored Oct 14, 2023
1 parent c7a5cf2 commit 84ec093
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/7-webapp-features/1-render-app/qwik/app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { component$, useSignal } from '@builder.io/qwik'

export const App = component$(() => {
return <h1>Hello world</h1>;
})
7 changes: 7 additions & 0 deletions content/7-webapp-features/1-render-app/qwik/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html>
<html>
<body>
<div id="app"></div>
<script type="module" src="./main.tsx"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions content/7-webapp-features/1-render-app/qwik/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import '@builder.io/qwik/qwikloader.js'
import { render } from '@builder.io/qwik'
import { App } from './app.tsx'

render(document.getElementById('app') as HTMLElement, <App />)

0 comments on commit 84ec093

Please sign in to comment.