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.


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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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