function createMarkupForStyles(styles, component) {
  let serialized = ''
  for (let styleName in styles) {
    const isCustomProp = (styleName.indexOf('--') === 0)
    if (!styles.hasOwnProperty(styleName)) {
      continue
    }
    if(styleName === 'label'){
      continue
    }
    let styleValue = styles[styleName]
    if (process.env.NODE_ENV !== 'production' && !isCustomProp) {
      warnValidStyle(styleName, styleValue, component)
    }
    if (styleValue != null) {
      if (isCustomProp) {
        serialized += `${styleName}:${styleValue};`
      } else {
        serialized += processStyleName(styleName) + ':'
        serialized += dangerousStyleValue(styleName, styleValue, component) + ';'
      }
    }
  }
  return serialized || null
}
Serializes a mapping of style properties for use as inline styles:

  > createMarkupForStyles({width: '200px', height: 0})
  "width:200px;height:0;"

Undefined values are ignored so that declarative programming is easier.
The result should be HTML-escaped before insertion into the DOM.

@param {object} styles
@param {ReactDOMComponent} component
@return {?string}