# Qwik & Firebase Integration Help

**URL:** <https://forum.builder.io/t/qwik-firebase-integration-help/2769>\
**Category:** General\
**Created:** [October 20, 2022, 3:46pm UTC](https://forum.builder.io/t/qwik-firebase-integration-help/2769 "2022-10-20T15:46:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Misko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/misko/32/677_2.png) [@Misko](https://forum.builder.io/u/Misko)\
**Post date:** [October 20, 2022, 6:48pm UTC](https://forum.builder.io/t/qwik-firebase-integration-help/2769/2 "2022-10-20T18:48:19Z")

</div>

See this code example:

```auto
import { component$, Resource, useResource$ } from "@builder.io/qwik";
import { useLocation } from "@builder.io/qwik-city";
import {
  getContent,
  RenderContent,
  getBuilderSearchParams,
  RegisteredComponent,
} from "@builder.io/sdk-qwik";

export const BUILDER_PUBLIC_API_KEY = "KEY"; // ggignore
export const MODEL = "content-page";
export default component$(() => {
  const location = useLocation();
  const builderContentRsrc = useResource$<any>(() => {
    return getContent({
      model: MODEL,
      apiKey: BUILDER_PUBLIC_API_KEY,
      options: getBuilderSearchParams(location.query),
      userAttributes: {
        urlPath: "/",
      },
    }).then((v) => {
      //console.log(JSON.stringify(v));
      return v;
    });
  });

  return (
    <>
      <h1 dangerouslySetInnerHTML={"0"}></h1>
      <Resource
        value={builderContentRsrc}
        onPending={() => <div>Loading...</div>}
        onResolved={(content) => (
          <RenderContent
            model={MODEL}
            content={content}
            apiKey={BUILDER_PUBLIC_API_KEY}
            customComponents={CUSTOM_COMPONENTS}
          />
        )}
      />
    </>
  );
});

export const Greeter = component$(() => {
  return <span>Hello World</span>;
});

export const CUSTOM_COMPONENTS: RegisteredComponent[] = [
  {
    name: "greeter",
    component: Greeter,
    builtIn: true,
  },
];

```

As far as using firebase goes, I think you should just follow firebase documentation. I don’t believe [Builder.io](http://Builder.io) has firebase-specific instructions.

---

_[View the full topic](https://forum.builder.io/t/qwik-firebase-integration-help/2769)._
