@mechairoi/qwik-solid
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

qwik-solid ⚡️

QwikSolid allows adding Solid components into existing Qwik application

How to Integrate into a Qwik app

Integration is pretty much the same as https://qwik.builder.io/docs/integrations/react/.

First, install @mechairoi/qwik-solid with npm, pnpm or yarn.

solid.tsx

import { qwikify$ } from '@mechairoi/qwik-solid';

// import Solid component from other package
import { Motion } from 'solid-motionone';

// Convert Solid component to Qwik component
export const QCounter = qwikify$(Counter, { eagerness: 'hover' });

index.tsx

import { component$ } from '@builder.io/qwik';
import { QCounter } from './solid';

export default component$(() => {
  return (
    <main>
      <QCounter />
    </main>
  );
});

Please keep in mind that this is an experimental implementation based on qwik-react. So, there might be bugs and unwanted behaviours.

Thanks to https://github.com/BuilderIO/qwik/pull/2291, it has been incredibly helpful.

Readme

Keywords

none

Package Sidebar

Install

npm i @mechairoi/qwik-solid

Weekly Downloads

5

Version

0.2.0

License

MIT

Unpacked Size

44.6 kB

Total Files

18

Last publish

Collaborators

  • mechairoi