This challenge is create a component that displays analytics data in a pivot table using react-pivot. This is what a basic, unstyled version looks like:
-
run
npm iin order to install required packages. -
run
npm run devin to run the app in development mode.
-
Create a component
report.jsxthat exports a component. -
This component will display the data from
data.jsonusingreact-pivotsimilar to the above image, and it should at minimum:-
Group by "date" and "host" (dimensions).
-
Show counts of "impressions", "loads", and "displays".
-
Show "load rate" (loads / impressions) and "display rate" (displays / loads)
-
-
You may modify
style.cssas you see fit (use thedefaultStyles: falseofreact-pivotto disable default styling). -
Do not modify
index.js. -
Follow these coding style guidelines.
-
Do not add any other npm modules (unless it is a small helper module).
