Why `express.default()` and not just `express()`? Also, TS errors.
fullofcaffeine opened this issue · comments
Marcelo Serpa commented
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!