The front-end of a CRUD todo list application made with React.js
- Add new todo
- Delete todo
- Clear todo list
- Mark todo as done
- Show todo list
- Reorder todo list
- React (Bootstrapped using Create React App)
- styled components
- React Beautiful Dnd
- Jest
Ensure that you also have the API server running. This app requires a functioning API back-end to work properly. See API repository 👉 link.
Clone repository
git clone https://github.com/benfir123/todo-list-client.git
cd todo-list-client
Run app in development mode
npm i
npm start
Have fun with the different features! - add, delete, clear, mark done, and reorder your todos.
This todo list was developed following Test First principles. All the requirements were converted into test cases and code was then refactored to pass said cases. The main piece of business logic was being able to reorder your todos. We decided to use the library react-beautiful-dnd for this. Once the user has selected the new order of their todo list, the array is then rearranged using array splicing. The entire state of the UI is managed using local state from React.
