page.js. Copy the contents of
page.jsand rename the component from
<Page>. Remember to also change the
exportline - line 18 in the code sample below.
post.jsare pretty much identical, so let's now distinguish between them by adding author and date info to
frontity.state.source.post, we can see that the only information we have about the author is the ID.
post.jsto get the author information and display both it and the post date.
<Page>component, and then use it in the
<Switch>component to conditionally render it if