Closed SunnySparks closed 3 years ago
You have done an incredible job on this piece of code because it's DRY, clean, and very simple to understand.
The most important change I would recommend to do, is to set a timeout to refresh the page automatically every time the user adds a new comment pressing the btn, so then he can see it without refreshing the page manually. Ex:
addComentBtn.addEventListener('click', async () => { await yourFunction(); }).then( setTimeout(() => { document.location.reload(); }, 1500), ); )
Don't forget to fix the errors that the linter's provide to you in order to pass all the test and be merged with out problems. ( IMPORTANT )
border-radius: 0.5rem;
to the img and the container would be a great idea. There are some points of the styling - UI/UX that can be improved.
popUp()
function to work with the selected recipe and not a static one
👨🏾💻 Current Progress: