The task was:
- Create a new component which does a basic pagination.
- This component should contain 2 buttons (Prev, Next) which can paginate the colleague list in the correct direction. The list should only show 5 elements at a time. Do NOT use a 3rd party library for the pagination feature.
- Collect the favorite colleagues in a separated list called the “favorites list” already seen on the UI. - Hint: The colleague objects already have a `favorite` boolean field.
- Optional task: Make this list also pageable.
- Add a new input field on the UI to be able to record the title for a new colleague. This field’s value should be presented in the colleague list.
- Write unit tests for every new code you write, with a testing framework of your choice. (Jest)
Back to home