dillon1000/react

Commit

Better error message for renderComponentToString()

Reported on Twitter by AirBnb (who are integrating React into their open-source JS framework). They made a mistake and passed a string in as the
component. We should have a better error message for that.
Browse files
Changed paths2 files
First-parent comparison
M src/environment/ReactServerRendering.js ModifiedM src/environment/__tests__/ReactServerRendering-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…