October 2019
Intermediate to advanced
426 pages
11h 49m
English
We are now going to define a new page component, where we will only fetch a single post from our API and display it.
Let's start creating the PostPage component now:
import React, { useEffect } from 'react'import { useResource } from 'react-request-hook'import Post from '../post/Post'
export default function PostPage ({ id }) {
const ...
Read now
Unlock full access