import {render, h, Fragment} from "../src/hiroshi"; export function App() { const ref = (node) => fetch('//jsonplaceholder.typicode.com/photos') .then(res => res.json()) .then(res => { render(, node); }); const Users = ({users}) => <>{users.map(user => {user.title})} return
} const style = { marginBottom: "0.5rem", border: "solid 1px #aaa", padding: ".5rem", flexBasis: "12rem" }; export function Card(props: any) { return
{props.name}: {props.children}
} export const display = () => render(, document.body);