1. 15
    Use the Screen Object to Avoid Query Destructuring From Render
    46s

Use the Screen Object to Avoid Query Destructuring From Render

Daniel Afonso
InstructorDaniel Afonso
Share this video with your friends

Social Share Links

Send Tweet
Published a year ago
Updated a year ago

In the previous lessons, we always destructured our queries for render. As your test grows and you need more queries, this can become annoying very quickly.

Ideally, we would have an object that is pre-bound to the document.body and allows us to use all the queries without any need for restructuring.

In this lesson, we are going to see how to tidy our code and save some time by using the screen util.