Have patience.
Coding is discovery. Coding is failing. Be ok with this.
Don’t blame the framework. It’s more probable it’s your code. Accept this fallibility.
Know when to walk away. You mind is a wonderful tool, even at rest it’s working on unsolved problems. Rest, and let your mind do it’s work.
Be comfortable not knowing. Software engineering is a vast ocean of knowledge. Someone will always know more than you. The sooner you are OK with this the sooner you will recognize the opportunity to learn something new.
Anger and frustration don’t fix code. Take a break, nothing can be accomplished in this state.