my blog https://overreacted.io
53
fork

Configure Feed

Select the types of activity you want to include in your feed.

oops

+2 -2
+2 -2
public/jsx-over-the-wire/index.md
··· 2219 2219 2220 2220 ```js 2221 2221 app.get('/*', async (req, res) => { 2222 - const url = req.url 2222 + const url = req.url; 2223 2223 const json = await toJSON(<RouterViewModel url={url} />); // Evaluate JSX 2224 2224 res.json(json); 2225 2225 }); ··· 2234 2234 const {postId} = parseRoute(url, '/screen/post-details/:postId'); 2235 2235 route = <PostDetailsRouteViewModel postId={postId} />; 2236 2236 } else if (matchRoute(url, '/screen/post-list')) { 2237 - route = <PostDetailsRouteViewModel />; 2237 + route = <PostListRouteViewModel />; 2238 2238 } 2239 2239 return route; 2240 2240 }