Skip to content

Instantly share code, notes, and snippets.

@mugan86
Created July 2, 2023 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugan86/177dc62b02b5884d0cc56319063e778a to your computer and use it in GitHub Desktop.
Save mugan86/177dc62b02b5884d0cc56319063e778a to your computer and use it in GitHub Desktop.
Qwik library
import { component$ } from "@builder.io/qwik";
export interface HelloProps {
name: string;
age?: number;
}
export const Hello = component$((props: HelloProps) => {
const { name, age } = props;
return (
<div>
Hello {name}. {age ? `Tienes ${age} años` : ""}
</div>
);
});
export { Logo } from "./components/logo/logo";
export { Counter } from "./components/counter/counter";
export type { HelloProps } from "./components/hello/hello";
export { Hello } from './components/hello/hello'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment