Skip to content

Instantly share code, notes, and snippets.

@odoe odoe/Profile.ts
Created May 7, 2019

Embed
What would you like to do?
// src/widgets/Profile.ts
export interface ProfileProperties {
username?: string;
}
export default class Profile extends WidgetBase<ProfileProperties> {
protected render() {
const { username } = this.properties;
return v("h1", { classes: [css.root] }, [
`Welcome ${username || "Stranger"}!`
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.