A React.js app using useState and useEffect hooks to create a component based list on my favourite books of the year. Books can be removed from the array based on user interest. When all books are removed the list is refreshed. Images have links to purchase the book from the Guardian bookshop (where images and text were taken from). I fed information from the Guardian Bookshop website into my own API hosted here: https://nikldev0.github.io/data/book_list_project.json.
- Books can be removed from the array based on user interest.
- When all books are removed the list is refreshed.
- Images link to corresponding Guardian Bookshop page.
- useState and useEffect hook in React.
- Manipulating JSON files and creating and hosting my own API.
- NPM methods to host this project on GitHub pages.
- Editing the manifest.json file to personalise the project favicon.
- Creating the Read more/Show less feature took some experimenting but was eventually fixed using the substring method.
- Mapping the Book component to the Books prop initially involved several lines of code that were difficult to read. This was eventually fixed using the ES6 spread operator (...) to quickly map all object properties across.