I stumbled upon this website today and it was a kid in a candy shop moment:
You can find code examples for almost all of your projects.
Like with tutorials it makes no sense to blindly copy the code and just imitiate what you see.
The way I do it is to copy the what I need into an extra Visual Studio Code file. After playing around with the code and understanding its logic, I will transfer everything into my project/ tech stack and try to make it work there.
Remember: Using sources like this is not cheating! It’s your daily job.
Researching plus learning on the fly is what we get our (hopefully big) paychecks for!