Skip to content

Instantly share code, notes, and snippets.

@odoe odoe/AboutWidget.tsx
Created Apr 25, 2019

What would you like to do?
import WidgetBase from "@dojo/framework/widget-core/WidgetBase";
import { dom } from "@dojo/framework/widget-core/d";
import Block from "@dojo/framework/widget-core/meta/Block";
import { tsx } from "@dojo/framework/widget-core/tsx";
import fromMarkdown from "../blocks/markdown.block";
import * as css from "./styles/About.m.css";
export default class About extends WidgetBase {
protected render() {
const node = document.createElement("div");
// Use my block
const message = this.meta(Block).run(fromMarkdown)(
node.innerHTML = message;
// Create a vnode to inject my HTML
const vnode = dom({ node });
return (
<h1 classes={css.root}>About Page</h1>
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.