Real unit test (isolation, no children render)
Calls:
- constructor
- render
| import express from "express"; | |
| import { renderToString } from "react-dom/server"; | |
| import { StaticRouter } from "react-router-dom"; | |
| import routes from "./routes"; | |
| const app = express(); | |
| app.use((req, res) => { | |
| const context = {}; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.