When you are working with SPFx, you may choose @pnp/sp library as they provide a fluent API to make building your REST queries intuitive and support batching and caching.
source https://www.c-sharpcorner.com/Blogs/spfx-sp-pnp-js-not-working-on-modern-pages
No comments:
Post a Comment