my blog https://overreacted.io
53
fork

Configure Feed

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

nit

+3 -3
+3 -3
public/jsx-over-the-wire/index.md
··· 2231 2231 function RouterViewModel({ url }) { 2232 2232 let route; 2233 2233 if (matchRoute(url, '/screen/post-details/:postId')) { 2234 - const {postId} = parseRoute(url, '/screen/post-details/:postId'); 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 2237 route = <PostListRouteViewModel />; ··· 2243 2243 And then each route would also be a ViewModel: 2244 2244 2245 2245 ```js 2246 - async function PostDetailsRouteViewModel({ postId }) { 2246 + function PostDetailsRouteViewModel({ postId }) { 2247 2247 return <PostDetailsViewModel postId={postId} /> 2248 2248 } 2249 2249 ··· 2269 2269 function RouterViewModel({ url }) { 2270 2270 let route; 2271 2271 if (matchRoute(url, '/screen/post-details/:postId')) { 2272 - const {postId} = parseRoute(url, '/screen/post-details/:postId'); 2272 + const { postId } = parseRoute(url, '/screen/post-details/:postId'); 2273 2273 route = <PostDetailsRouteViewModel postId={postId} />; 2274 2274 } else if (matchRoute(url, '/screen/post-list')) { 2275 2275 route = <PostListRouteViewModel />;