Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutating style #3

Open
delfrrr opened this issue Jan 26, 2016 · 0 comments
Open

Mutating style #3

delfrrr opened this issue Jan 26, 2016 · 0 comments

Comments

@delfrrr
Copy link

delfrrr commented Jan 26, 2016

Fantastic component!

Minor warning with mutating style

var reactTransition = React.createFactory(require('react-transition'));
...
reactTransition({
    component: 'circle',
    cx: 50,
    cy: 50,
    r: 50,
    style: {
        fill: this.props.color
    }
})

Gives Warning:circlewas passed a style object that has previously been mutated. Mutatingstyleis deprecated. Consider cloning it beforehand. Check therenderofnull. Previous style: {fill: "#73cf42"}. Mutated style: {fill: "#74cf42"}.

with React v0.14.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant