This commit is contained in:
parent
22874ecbd4
commit
8e0659a554
|
@ -4,11 +4,13 @@ import ReactDOMServer from "react-dom/server";
|
|||
import { Layout, Form } from "./components";
|
||||
|
||||
const app = express();
|
||||
const doctype = `<!DOCTYPE html>\n`;
|
||||
|
||||
app.use(express.static("static"));
|
||||
|
||||
app.get("/", (req, res) =>
|
||||
res.send(
|
||||
doctype +
|
||||
ReactDOMServer.renderToStaticMarkup(
|
||||
<Layout>
|
||||
<Form></Form>
|
||||
|
|
Loading…
Reference in New Issue