- This is a React based exercise for potential candidates for the 9Now CTV team.
- It is a simplified version of our
<TabbedGrid>
component.
- Our team has built all of the separate pieces we need to put together our new
<TabbedGrid>
component. - This is plain React, and all of the styling has been done for you.
response.json
contains an example payload from the server.- We can have any number of tabs, and each tab can have any number of cards.
Make changes to the app to meet these requirements, one at a time:
- Tabs should dynamically display based on
/data/response.json
. - We want the first tab to automatically be selected on page load.
- Whenever a tab is selected, we want to show the associated cards.
- How can we make this more performant?
- How would you approach showing a loading or error state?
- How can we have more confidence the app works as expected?
First install dependencies:
npm install
To run in hot module reloading mode:
npm start
To run unit tests:
npm test