Questions tagged [qwik]

98 questions
7
votes
2 answers

How to pass functions as props in Qwik JS?

Problem In React, we can pass functions as props into a child component when a function requires access to a state within the parent component of the aforementioned child. I was writing code for an application where I need such behavior to be…
7
votes
3 answers

If possible, how to use MUI with Qwik framework?

I try Qwik framework which looks a lot like Reactjs and uses jsx. And suddenly, I wonder if Reactjs libraries such as MUI can work with Qwik framework. I tried this code: import { component$ } from "@builder.io/qwik"; import Add from…
Luccin
  • 219
  • 2
  • 7
6
votes
3 answers

How can I host qwik framework on github pages?

I've tried to use the documentation here and here in order to generate static files and put them into the docs folder, but for some reason, the site looks broken. The splitted JS files don't work as they should when using the auto-generated GitHub…
Tamir Gilany
  • 441
  • 7
  • 12
4
votes
1 answer

How do you render dynamic HTML or SVG in Qwik?

I get SVG or dynamic HTML from a headless CMS. But I can't render it in Qwik. In Next.js we would use the dangerouslySetInnerHTML for this purpose. What is our option in Qwik? I can't find anything in their documentation.
3
votes
1 answer

Difference between Resumability , Hydration and Reconcillation in modern web app?

What are the main differences between Resumability , Hydration and Reconcillation ? We know Resumability is future of web app, Is it possible to make most of the current meta framework (Nextjs,Remix, Sveltekit, Solidstart, etc.. ) resumable ?
Harsh Mangalam
  • 1,116
  • 1
  • 10
  • 19
2
votes
0 answers

Deploying to Vervel - Qwik City + Express Adapter

My project makes use of Prisma, and it will take a lot to convince me to move to Prisma cloud, so I am trying to deploy to Vercel with the Qwik Express Adapter. However, after deploying (I will put my config below), I get the Vercel 404 page when I…
PiWizard3852
  • 95
  • 1
  • 11
2
votes
2 answers

How to implement localization in Qwik framework with Qwik Speak?

I'm trying to implement localization in Qwik framework with Qwik Speak but i'm getting the following error when trying to resolve locale: Internal server error: locale is not a function I'm following the instructions in the Qwik Speak…
Kristóf Göncző
  • 382
  • 1
  • 5
  • 16
2
votes
2 answers

Dynamically assigning classes in Qwik

I am new to Qwik and trying to conditionally add/remove classes from items in my navbar component. The complication is that I'm using tailwind and I want to conditionally add/remove the tailwind class (using custom animations), but it seems to have…
Calvin P.
  • 1,116
  • 2
  • 8
  • 13
2
votes
1 answer

useVisibleTask does not work in Qwik because it is not a function

I'm trying to use Swiper in my Qwik application. Based on the docs I figured out that I have to use useVisibleTask$. This is my code: import { component$, useVisibleTask$, } from '@builder.io/qwik' import Swiper from 'swiper' import…
2
votes
2 answers

How do you implement authentication/authorization in Qwik/Qwik City?

I have Qwik City running on Express. Would appreciate if someone could point out the easiest way to do authorization. Is using an Express authentication/authorization middleware possible?
Fung
  • 7,530
  • 7
  • 53
  • 68
2
votes
0 answers

How do you create a component with a default Slot and include it in the main layout in Qwik?

Let's say I want to create my own Link. const Link = ({ href, style }) => { return } Now I want to use this Link in the Menu of my website, and the Menu component is imported inside the…
Big boy
  • 1,113
  • 2
  • 8
  • 23
2
votes
1 answer

How to render children in Qwik?

In React, I had this component: const Title = ({ children }) => { return

{children}

} export default Title And I could easily use it as Something In Qwik, I can create the same component: import { component$ } from…
Big boy
  • 1,113
  • 2
  • 8
  • 23
2
votes
3 answers

How to override the default 404 screen in Qwik?

I'm testing out the Qwik Javascript framework from Builder IO and I cant find any documentation which points me in the direction of customizing the 404 page. I am using the qwik-city plugin from Qwik.
Rafael Zasas
  • 891
  • 8
  • 27
2
votes
1 answer

How is Qwik reusability different from rehydration of other web-frameworks

Web-frameworks that server-side-render (or SSG) require rehydration step, how is that different from Qwik approach of resumability?
Misko Hevery
  • 47,936
  • 11
  • 40
  • 36
1
vote
1 answer

How can I pass a JSX.Element as prop in Qwik?

I have two components in Qwik V 1.2.6 the first one is the parent and looks like that: . . . return ( Hello world} /> ); . . . the child component receives as prop the element JSX object export default…
Josu16
  • 43
  • 4
1
2 3 4 5 6 7