Skip to content

Commit 263302d

Browse files
authored
Fix typo in ssr.md (#8324)
1 parent 1becc31 commit 263302d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guides/ssr.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ export default function App() {
4848
Here's a simple express server that renders the app on the server. Note the use of `StaticRouter`.
4949

5050
```js filename=server.entry.js
51-
import express from "express"
51+
import express from "express";
5252
import ReactDOMServer from "react-dom/server";
5353
import { StaticRouter } from "react-router-dom/server";
5454
import App from "./App";
5555

5656
let app = express();
5757

58-
app.get("*", ((req, res)) => {
58+
app.get("*", (req, res) => {
5959
let html = ReactDOMServer.renderToString(
6060
<StaticRouter location={req.url}>
61-
<App/>
61+
<App />
6262
</StaticRouter>
6363
);
6464
res.send("<!DOCTYPE html>" + html);
65-
})
65+
});
6666

6767
app.listen(3000);
6868
```

0 commit comments

Comments
 (0)