We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c08a017 commit c9a3e17Copy full SHA for c9a3e17
node_package/src/serverRenderReactComponent.js
@@ -1,6 +1,6 @@
1
import ReactDOMServer from 'react-dom/server';
2
3
-import ReactOnRails from './ReactOnRails';
+import ComponentRegistry from './ComponentRegistry';
4
import createReactElement from './createReactElement';
5
import isRouterResult from './isRouterResult';
6
import buildConsoleReplay from './buildConsoleReplay';
@@ -13,7 +13,7 @@ export default function serverRenderReactComponent(options) {
13
let hasErrors = false;
14
15
try {
16
- const componentObj = ReactOnRails.getComponent(name);
+ const componentObj = ComponentRegistry.get(name);
17
if (componentObj.isRenderer) {
18
throw new Error(`Detected a renderer while server rendering component '${name}'`);
19
}
0 commit comments