Thanks. I was watching a previous video and they only showed atoms and it immediately gave me a bad first impression for the exact reason you showed at 4:42. Thanks for including the selectors in this tutorial.
It means when the component is removed. For example, you have a website that is currently displaying home page. Then when u navigate to another page, home page is UNMOUNTED. Hope this helps you!
Better toturials than other 15 minutes long video explaining what is vim use case, thanks for this video! helped me saved a lot of time by just pointing out to the topic instead of talking nonsense for 10 min
6:00 - I’m with you 100% on BEM for the stated reasons, but curious: Earlier you mentioned ability to Ctrl+F the codebase to find the class. One issue I’ve encountered with using Sass & prefixes is that it gets in the way of this typically. Do you have a process for that or do you just failover to the manual search (i.e. It’s a “Card” so at least you know where to look) or should you just scrap & prefixes all together in order to preserve searchability? 🤔
This is a great tutorial that helped me understand how parallax works. Only issue with it is that translation of elements will continue even when they are off-screen. I think a better approach might be to only apply the styles if the element is in the viewport (using intersection observer maybe) . You could also use Math.min() to remedy it a bit. This line for example would stop translating after 300px translation has occurred. transform: `translate3d(${Math.min(offsetY * 0.8, 300)}px, 0px, 0px).
Not working for me :( and im getting this warning: React Hook useEffect has a missing dependency: 'handleScroll'. Either include it or remove the dependency array react-hooks/exhaustive-deps any idea whats goin on?
Move the *handleScroll* function inside of the useEffect, then add the *offsetY* state into the square brackets (the second argument of useEffect). It should both work and clear the warnings