export const h = ( element , attributes ) => `<${ element } ${ toAttribute ( attributes ) }/>` ; export const toAttribute = ( o ) => Object . entries ( o ) . filter ( ( [ , value ] ) => value !== null ) . map ( ( [ name , value ] ) => `${ name }="${ value }"` ) . join ( " " ) ;