export const generateHtmlTag = ( elementName , attrs ) => Object . keys ( attrs ) . reduce ( ( result , attrName ) => `${ result } ${ attrName }="${ attrs [ attrName ] }"` , `<${ elementName }` ) . concat ( ' />' ) ;