facebookarchive / react-page

Easy Application Development with React JavaScript
Apache License 2.0
797 stars 72 forks source link

Some css rules disappear on server rendering #38

Open trodrigues opened 11 years ago

trodrigues commented 11 years ago

I was trying out the server rendering feature on react-page with the default contents, and after deactivating JS on my browser (Chrome), I noticed something wasn't quite all right. The HTML is there, but it wasn't rendering properly.

After some debugging, I realized the 'h1.banner.fadeIn' rule was disappearing somewhere along the pipeline. That doesn't happen when JS is activated, so I assume the client side JS takes care of rendering that.

This is weird because the same component is used on both sides. I tried to debug the issue but can't really tell where the rule is disappearing and if this is an issue with react-page or react-styles.

jordwalke commented 11 years ago

Do you suppose it's related to https://github.com/hedgerwang/react-styles/issues/2