Should I use Resource Picker as a component or as a function

Shopify Partner
5 0 0

Hi, when I research how to properly use Resource Picker I found two versions of documentations. The [legacy version]( suggests to use it as a component  and the [newer version]( suggests to use it as a function. I was able to get Resource Picker to work with the legacy method but cannot figure out what I am supposed to import and where to place the tutorial code snippets for the newer version.


Can someone explain how this works?

Replies 0 (0)