Slide 1

Slide 1 text

Qwik for - Developers

Slide 2

Slide 2 text

New perspectives open up new paths.

Slide 3

Slide 3 text

How can I do … in Qwik?

Slide 4

Slide 4 text

@GregOnNet Gregor Woiwode, CTO Find me at the conference and say hi!

Slide 5

Slide 5 text

@GregOnNet Gregor Woiwode, CTO Find me at the conference and say hi! 🤔 write me an X-it?!

Slide 6

Slide 6 text

Playground - Insurance Branch - Document Manager

Slide 7

Slide 7 text

- 💫 Developer Experience - 🧬 Component Anatomy - 🧭 Routing - ☁ Http - 🤔 Code reusability Agenda

Slide 8

Slide 8 text

💫 Developer Experience CLI CLI community built-in

Slide 9

Slide 9 text

CLI - Scaffolds Project - Installs integrations - Provides guidance

Slide 10

Slide 10 text

esLint - ⛔ Qwik has some constraints how its API needs to be used. - 🛣 Qwik provides esLint Rules guiding you.

Slide 11

Slide 11 text

esLint https://qwik.builder.io/docs/advanced/eslint/#missingExport - E.g. some functions must be exported. - Each rule is well documented.

Slide 12

Slide 12 text

Integrations https://qwik.builder.io/docs/integrations 🌳 unpic And many more… Auth.js ⚛ React Playwright vitest

Slide 13

Slide 13 text

Component Anatomy

Slide 14

Slide 14 text

Component Anatomy

Slide 15

Slide 15 text

JSX/TSX - JavaScript Syntax Extension

Slide 16

Slide 16 text

Component Anatomy

Slide 17

Slide 17 text

Component Anatomy

Slide 18

Slide 18 text

Component Anatomy

Slide 19

Slide 19 text

• OnInit • OnChanges • AfterViewInit • AfterViewChecked • AfterContentInit • AfterContentChecked • DoCheck • OnDestroy • useTask$ • useVisibleTask$ Component Life-Cycle

Slide 20

Slide 20 text

Component Anatomy

Slide 21

Slide 21 text

Component Anatomy

Slide 22

Slide 22 text

useTask$ - 👂can listen to state changes - 🏄is executed on the server first

Slide 23

Slide 23 text

useTask$ = OnInit + OnChanges + Server-Side-Execution

Slide 24

Slide 24 text

useTask$

Slide 25

Slide 25 text

https://qwik.builder.io/docs/components/tasks/#usetask … is executed on the server & the client. 🤯 useTask$

Slide 26

Slide 26 text

useVisibleTask$ - 📱is executed on the client - 🎨 is triggered initially after first render - 🔄 re-executes when dependency has changed

Slide 27

Slide 27 text

useVisibleTask$ = AfterViewInit + OnChanges

Slide 28

Slide 28 text

useVisibleTask$

Slide 29

Slide 29 text

• @HostListener() • InjectionToken • useOnDocument() • useOnWindow() • useOn() Listen to Events

Slide 30

Slide 30 text

Component Anatomy

Slide 31

Slide 31 text

useOn…

Slide 32

Slide 32 text

• @Input() / input() • @Output() / output() • Props • PropFunction Coponent Communication

Slide 33

Slide 33 text

Component Communication

Slide 34

Slide 34 text

Component Communication

Slide 35

Slide 35 text

• signal() • computed() • effect() • input() • output() • model() • useStore() • useSignal() • useComputed() Reactive Primitives

Slide 36

Slide 36 text

DEMO

Slide 37

Slide 37 text

• Router • Guards • File based routing • Middleware • Layouts Navigation

Slide 38

Slide 38 text

DEMO

Slide 39

Slide 39 text

• HttpClient • Interceptors • fetch • useResource$ • routeLoader$ • routeAction$ • server$ HTTP

Slide 40

Slide 40 text

DEMO

Slide 41

Slide 41 text

Summary component$ STATE useSignal useStore TASKS useTask$ useVisibleTask$ CONTEXT createContextId useContext useContextProvider SLOTS Qwik enhanced progressively by hooks.

Slide 42

Slide 42 text

Summary component$ SERVER server$ env PAGES Routing Dynamic Head DATA routeLoader$ routeAction$ Endpoints LAYOUTS Qwik comes with Qwik City

Slide 43

Slide 43 text

Community

Slide 44

Slide 44 text

Community Join Discord via qwik.builder.io

Slide 45

Slide 45 text

Gregor Woiwode, CTO https://github.com/co-IT/talk-qwik-angular Slides & Code

Slide 46

Slide 46 text

Attributions - Photo by Anika Huizinga on Unsplash - Photo by Dawid Zawiła on Unsplash - Photo by RephiLe water on Unsplash - Photo by Jed Villejo on Unsplash