Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Server side rendering #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

joernroeder
Copy link

Hey, I've had some time to look at the issue around server side rendering and came up with the following solution! Please read over the source and tell me what you think! I'll update the Readme and examples afterwards…
cheers

alt: imgr.gif.src
className: imgr ? imgr.className : 'image-replace', // add imagers className to server side rendering. It's kind of dirty but fixes Reacts invalid checksum warning for now.
src: imgr ? imgr.gif.src : '',
alt: imgr ? imgr.gif.src : '' // <-- why are you using the src as alt attribute here?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a typo.

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

Successfully merging this pull request may close these issues.

2 participants