// example.jsx
import { h, Fragment, render, mount } from '@/index';
const Root = mount(function (renew) {
let showFive = false;
let showSix = false;
const toggleFive = () => {
showFive = !showFive;
renew();
};
const toggleSix = () => {
showSix = !showSix;
renew();
};
return () => (
4
{showFive ? 5 : null}
{showSix ? 6 : null}
7
);
});
const R = ;
//@ts-ignore
window.root = R;
render(R, document.getElementById('list-root'), document.getElementById('8'));