Repository navigation
v1.1.0
- add useInnerRoot hook to create a root that inherits the current context
export const App = renderRoot(() => {
const [connected] = useLifeCycle();
const createInnerRoot = useInnerRoot();
connected((self) => {
setTimeout(() => {
self.append(createInnerRoot(() => Component()));
}, 1000);
});
return `<div>My App</div>`
});