Hi Luiza, those are some great tips, thank you for this post!
Just one thing though. I would advise against the use of boolean && over the ternary operator. Here's a cautionary tale: kentcdodds.com/blog/use-ternaries-rather-than-and…
TL;DR is that the operator && might evaluate to the first value whereas the ternary will only evaluate to the explicit expressions you type in second and third positions. While the code is new and short it's clear to see, but once enough time has past and enough keyboards have touched it things get messier and bugs like these creep in.
Have a great day! ☺️