December 2019
Intermediate to advanced
474 pages
10h 3m
English
With the very first HOC in place it's time to think of other components you can create with this HOC, such as a component that is displaying only tickets. The process to create this component consists of two steps: creating the actual component and importing the component and passing the required props to it. Let's get started:
import React from 'react';import styled from 'styled-components';import withDataFetching from '../withDataFetching';import Ticket from '../components/Ticket/Ticket'; ...