March 2019
Intermediate to advanced
208 pages
5h 11m
English
First, change the program so it stores state only when orders are updated, edited, or deleted. Use React.useEffect1 as described in the preceding text to make that happen.
Second (and this will be a much more involved project), as we suggested at the start of the chapter, revise the preceding chapter’s graphic example to use a FrequencyChart component, where the Chart.t object is part of the component rather than a global variable.
Note: I haven’t included solutions in the code directory for either of these, but you are ready to tackle these on your own.
Read now
Unlock full access