You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The benefit of using screen is you no longer need to keep the render call destructure up-to-date as you add/remove the queries you need. You only need to type screen. and let your editor's magic autocomplete take care of the rest.
The only exception to this is if you're setting the container or baseElement which you probably should avoid doing (I honestly can't think of a legitimate use case for those options anymore and they only exist for historical reasons at this point).
A good observation @christianacca !
As @portothree mentioned, we encourage the usage of screen (you should be able to use it everywhere if you're not doing something exotic).
Functionally they both do the same.
Prior to version 10 of this library, all the examples used the
component
returned byrender
method. Now the examples use thescreen
object.Both
screen
andcomponent
share the same method names. Questions:screen
where possible rather thancomponent
The text was updated successfully, but these errors were encountered: