Reactjs – Error using renderToString in React.js to enable server-side rendering using express
This is my server/server.js: import express from "express"; import React from "react"; import ReactDOMServer, { renderToString } from 'react-dom/server'; import App from '../src/App'; const PORT = 4000; const app = express(); app.use(express.static('./build', {index: false})); app.get('/', (req, res) => { const…