Skip to content

Commit

Permalink
Wrap Home in anonymous func
Browse files Browse the repository at this point in the history
  • Loading branch information
yandeu committed Jul 30, 2023
1 parent 7ee8292 commit f61588e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.use(compression())
app.use('/public', express.static('dist/server/public'))

app.get('/', (req, res) => {
res.send(renderSSR(<Home />))
res.send(renderSSR(() => <Home />))
})

app.listen(port, () => {
Expand Down

0 comments on commit f61588e

Please sign in to comment.