Skip to content

v1.1.0

Choose a tag to compare

@enzoaicardi enzoaicardi released this 03 Jun 19:05
· 12 commits to main since this release
  • 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>`
});

v1.0.1...v1.1.0