October 2019
Intermediate to advanced
426 pages
11h 49m
English
Now, all that is left to do is refactoring the post components; then our whole app will be using React context for global state:
import React, { useContext } from 'react'import { StateContext } from '../contexts'import Post from './Post'export default function PostList () { const { state } = useContext(StateContext) const { posts } = state
import React, { useState, useContext } from 'react'import { StateContext } from '../contexts'export default function CreatePost ...Read now
Unlock full access