Look beyond the code
When I introduce a tool or demonstrate a code example, it is usually connected to a concept we have just discussed. Try to understand this connection. What part of the concept does the tool implement? What happens behind the scenes? What does the tool handle for you, and what decisions are still yours?
The important skill is not remembering the code, but understanding what it does and why. This knowledge will also help you work with other tools that implement similar ideas.