This commit is contained in:
Leandro Facchinetti 2020-03-18 10:14:00 -04:00
parent 22874ecbd4
commit 8e0659a554
1 changed files with 7 additions and 5 deletions

View File

@ -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>