Hook
More breakout videos from this creator.
HERE'S HOW TO SAVE YOURSELF HOURS WHEN CODING Imagine we wanted to add authentication into our app. So we need like a register page, a login page, as well as like a forgot password page. On the one hand, we could just copy and paste code on each page, you know, so the login page will have its specific type of code and the registration pages have its specific type of code. However, we're developers and we wanna save time. So what you can do instead right is just create a boilerplate piece of code that you can reuse in the coat of your code. So for example, here we have a card wrapper and in it we have things such as the show social which will allow us to have Google auth and GitHub auth. We have like a back button label and a header title. So when we go into our login forms at registration forms, we could simply just call it here, the login titled, we'd have the back button label as well as the show social. That when we're making each page, it just saves us 10 times more time because we have a boilerplate piece of code that we can just reuse throughout our entire app. And only does it save you time, but it's also good practices for companies to look at. It's a great tip.