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