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

Peterpot
Shopify Partner
5 0 0

Hi, when I research how to properly use Resource Picker I found two versions of documentations. The [legacy version](https://shopify.dev/docs/api/app-bridge/previous-versions/actions/resourcepicker) suggests to use it as a component  and the [newer version](https://shopify.dev/docs/api/app-bridge-library/reference/resource-picker) 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)