I\'m getting the following error in my browser:
Uncaught Error: Invariant Violation: The
style
prop expects a mapping from style properti
I used the style attribute in JSX file like this
style={{textTransform: 'uppercase'}}
and it worked for me
React Style requires you to use the styles
prop instead of style
.
var HoverAction = React.createClass({
render: function() {
return (
<div styles={HoverActionStyles.normal}>
<div ></div>
<div styles={HoverActionTitleStyle.normal} >{this.props.title}</div>
</div>
);
}
});