function createRootElement (vCompName, compPrefix, elementProps) {
  const element = document.createElement('div')
  element.setAttribute(`data-${compPrefix}`, vCompName)
  for (const key in elementProps) {
    element.setAttribute(`data-${key}`, elementProps[key])
  }
  return element
}
// Fake root element creation helper.
Fake root element creation helper.
Fake root element creation helper .
function createRootElement (vCompName, compPrefix, elementProps) {
  const element = document.createElement('div')
  element.setAttribute(`data-${compPrefix}`, vCompName)
  for (const key in elementProps) {
    element.setAttribute(`data-${key}`, elementProps[key])
  }
  return element
}
function createRootElement ( vCompName , compPrefix , elementProps ) { const element = document . createElement ( 'div' ) element . setAttribute ( ` ${ compPrefix } ` , vCompName ) for ( const key in elementProps ) { element . setAttribute ( ` ${ key } ` , elementProps [ key ] ) } return element }
Fake root element creation helper.
Fake root element creation helper .