December 2019
Intermediate to advanced
474 pages
10h 3m
English
One of the many great additions that came with Hooks is making life cycles available in functional components. Before Hooks, only class components supported life cycles using to the container components pattern and the withDataFetching HOC you've used so far. Follow these steps:
import React from 'react';export const ListsContext = React.createContext();async function fetchData(dataSource) { ...Read now
Unlock full access