Created
July 2, 2023 17:19
-
-
Save mugan86/177dc62b02b5884d0cc56319063e778a to your computer and use it in GitHub Desktop.
Qwik library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | |
); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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