@mr_hugo/boredom
Version:
Another boring JavaScript framework.
11 lines (9 loc) • 375 B
JavaScript
import { webComponent } from "/dist/boreDOM.min.js";
export const StatefulComponent2 = webComponent((opts) => {
console.log('Initializing Stateful Component 2', opts)
const somethingRef = opts.refs.something;
return ((opts, element) => {
console.log('Rendering Stateful Component 2', opts)
somethingRef.innerText = "Something ref innerText updated";
});
});