Skip to content

Commit c4193e7

Browse files
committed
Props updated for example
1 parent 968733d commit c4193e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/express/src/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ import { Resolver, FileSystemAdapter } from '../../../dist/index';
88
const app = express();
99

1010
app.get('/', (req, res) => {
11-
const htmlBody = ReactDOMServer.renderToString(React.createElement(App, {
11+
const app = React.createElement(App, {
1212
bodyText: 'hello world, from the server yo',
13-
}));
13+
});
14+
15+
const htmlBody = ReactDOMServer.renderToString(app);
1416

15-
const resolver = new Resolver(App, new FileSystemAdapter({
17+
const resolver = new Resolver(app, new FileSystemAdapter({
1618
folderPath: `${path}/styles`,
1719
inline: true,
1820
}));

0 commit comments

Comments
 (0)