Skip to content

Instantly share code, notes, and snippets.

View evatrium's full-sized avatar

Weston Blair Ross evatrium

View GitHub Profile
import {h, render, Fragment, Host} from './little-vdom';
import {someSubscription, anotherSub} from './store';
const CounterAndSubscriber = (props, {count = 0}, update) => {
return( // in order to achieve hook-like functionality
// you can tie into the web component lifecycle
<Host lifeCycle={() => { //
// call update to rerender this component