Skip to content

Instantly share code, notes, and snippets.



Created May 7, 2019
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 } =;
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.