manuelbieh / react-ssr-setup

React Starter Project with Webpack 4, Babel 7, TypeScript, CSS Modules, Server Side Rendering, i18n and some more niceties

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why `express.default()` and not just `express()`? Also, TS errors.

fullofcaffeine opened this issue · comments

Hi Manuel!

Thanks a lot for this boilerplate, it's really helpful and there's a lot of bleeding edge and useful gems to learn from.

I've found that TS errs here: https://github.com/manuelbieh/react-ssr-setup/blob/master/src/server/index.ts#L18. Also, I didn't understand why you call default() there instead of just calling express(). Would you mind to elaborate?

Thanks in advance!