Is there any way to use inline style for the JSS React components? I have tried:

const inlineStyle = { width: '100%' }
const Example = () =>
    <Image style={ inlineStyle } />

But the style seems to be ignored. The output is:

<img />


<img style="width: 100%"/>

I have read the release notes but cant se anything about ignoring styles.

1 Answer 1


This is definitely a bug. I've logged an issue and it will be fixed for the upcoming GA release.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.