src/transformer.js
function transformStyles(value) {
        if (t.isStringLiteral(value)) {
            renderer.renderAttributeExpression("style", value);
        } else if (t.isJSXExpressionContainer(value)){
            renderer.handleStyles(value.expression);
        } else {
            error(value, "Unknown style specification type.");
        }
    }
function transformStyles(value) {
        if (t.isStringLiteral(value)) {
            renderer.renderAttributeExpression("style", value);
        } else if (t.isJSXExpressionContainer(value)){
            renderer.handleStyles(value.expression);
        } else {
            error(value, "Unknown style specification type.");
        }
    }
function transformStyles ( value ) { if ( t . isStringLiteral ( value ) ) { renderer . renderAttributeExpression ( "style" , value ) ; } else if ( t . isJSXExpressionContainer ( value ) ) { renderer . handleStyles ( value . expression ) ; } else { error ( value , "Unknown style specification type." ) ; } }
Transforms the style specification in either a plain attribute rendering
or a handler function call.
Transforms the style specification in either a plain attribute rendering or a handler function call .