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 {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 |