We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 968733d commit c4193e7Copy full SHA for c4193e7
examples/express/src/index.js
@@ -8,11 +8,13 @@ import { Resolver, FileSystemAdapter } from '../../../dist/index';
8
const app = express();
9
10
app.get('/', (req, res) => {
11
- const htmlBody = ReactDOMServer.renderToString(React.createElement(App, {
+ const app = React.createElement(App, {
12
bodyText: 'hello world, from the server yo',
13
- }));
+ });
14
+
15
+ const htmlBody = ReactDOMServer.renderToString(app);
16
- const resolver = new Resolver(App, new FileSystemAdapter({
17
+ const resolver = new Resolver(app, new FileSystemAdapter({
18
folderPath: `${path}/styles`,
19
inline: true,
20
}));
0 commit comments