What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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

Peterpot
Shopify Partner
5 0 2

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)