The challenge runs on CodeSignal, which has a layout similar to CodeSandbox but with an additional panel on the left-hand side for instructions. The task is to complete the functionality of a book app (think of it as your standard to-do app). Most of the React code is provided, except for the functionality for the "addBook" and "deleteBook" functions. Follow the user story, and you can't go wrong. Then, be prepared to cover the topics mentioned in the description. Even better, don't apply and save your energy for a company that has a clearer hiring process and respects candidates' time (cough, cough, Atlassian).
Sigiloso
I've written the logic for the two functions, making sure the edge cases are covered so that every test can pass. The edge cases are: - If the input field is empty, a new book shouldn't be added to the "books" array - The "deleteBook" function should only delete the selected book; the book ID can be used for that