To test out the new page, we are going to replace the HomePage component in src/App.js with the PostPage component, as follows:
- Import the PostPage component in src/App.js:
import PostPage from './pages/PostPage'
- Now, replace the HomePage component with the PostPage component:
<PostPage id={'react-hooks'} />
As we can see, now only one post, the React Hooks post, gets rendered.