Open alexmarchant opened 8 years ago
Agreed, the Style
object should use the same syntax as inline. For hover
as well, see #712.
On Fri, May 20, 2016 at 4:18 PM Alex Marchant notifications@github.com wrote:
I wonder if it would make life easier if the regular old inline style format matched the format for the Style component.
For example:
I have several buttons on a page, some I have created in react and some I had to accept the html from a Wordpress plugin:
Learn More <div dangerouslySetInnerHTML={{__html: this.props.purchaseLinkHTML}} />
I wonder if it would make life easier if the regular old inline style format matched the format for the Style component.
For example:
I have several buttons on a page, some I have created in react and some I had to accept the html from a Wordpress plugin:
Which doesnt work, the media queries need to be in a
mediaQueries
object for the Style component to work.I wrote a little helper function which can convert
style.buttons
to the right format.Which will turn the styles to correct format, but it would be nice if it just worked without that step.
May this could be standardized?