Skip to content

React 16 client side render doesn't update DOM's style that comes from SSR #11128

@ohmyhusky

Description

@ohmyhusky

Do you want to request a feature or report a bug?
bug
What is the current behavior?
React 16 client-side-render have a problem, it can not update the DOM's style, but it can update the prop. More detail on repo below.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template for React 16: https://jsfiddle.net/Luktwrdm/, template for React 15: https://jsfiddle.net/hmbg7e9w/).
I created a repo for this https://github.com/cyl19910101/React-16-SSR-style-problem
What is the expected behavior?
Update DOM's style correctly.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

You are using Chrome Dev 61.0.3163.100 on OS X El Capitan 10.11
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

React 16.0.0

It does work in previou version like 15.6.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions