PNP JS in SharePoint
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
3
down vote
favorite
Till date we are coding custom solutions in SharePoint using JavaScript/jQuery/REST API, I need to know if there are any downfalls of using PNP JS as an alternate to REST? My company is pushing all developers to code using PNP JS library. Is it worth learning PNP JS or should we stick to jQuery/REST?
development api pnp
add a comment |Â
up vote
3
down vote
favorite
Till date we are coding custom solutions in SharePoint using JavaScript/jQuery/REST API, I need to know if there are any downfalls of using PNP JS as an alternate to REST? My company is pushing all developers to code using PNP JS library. Is it worth learning PNP JS or should we stick to jQuery/REST?
development api pnp
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
Till date we are coding custom solutions in SharePoint using JavaScript/jQuery/REST API, I need to know if there are any downfalls of using PNP JS as an alternate to REST? My company is pushing all developers to code using PNP JS library. Is it worth learning PNP JS or should we stick to jQuery/REST?
development api pnp
Till date we are coding custom solutions in SharePoint using JavaScript/jQuery/REST API, I need to know if there are any downfalls of using PNP JS as an alternate to REST? My company is pushing all developers to code using PNP JS library. Is it worth learning PNP JS or should we stick to jQuery/REST?
development api pnp
development api pnp
edited 2 hours ago


helb
439312
439312
asked 2 hours ago
Zakir HC
2,67332248
2,67332248
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
For me the answer is pretty obvious: for sure you should use it.
A few things why I think so:
- the learning curve is very straightforward and not so difficult
- pnpjs is a wrapper on REST API, by using jQueryREST you will create your own "pnpjs". In that case, why reinvent the wheel?
- pnpjs has some other things except just wrapping around REST. For example caching, batching, managed metadata support (which is not supported in REST yet)
- fluent interface is awesome in pnpjs. I believe you have less typo errors and regression bugs with pnpjs
- your code is cleaner, as a result easier to maintain
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
For me the answer is pretty obvious: for sure you should use it.
A few things why I think so:
- the learning curve is very straightforward and not so difficult
- pnpjs is a wrapper on REST API, by using jQueryREST you will create your own "pnpjs". In that case, why reinvent the wheel?
- pnpjs has some other things except just wrapping around REST. For example caching, batching, managed metadata support (which is not supported in REST yet)
- fluent interface is awesome in pnpjs. I believe you have less typo errors and regression bugs with pnpjs
- your code is cleaner, as a result easier to maintain
add a comment |Â
up vote
3
down vote
accepted
For me the answer is pretty obvious: for sure you should use it.
A few things why I think so:
- the learning curve is very straightforward and not so difficult
- pnpjs is a wrapper on REST API, by using jQueryREST you will create your own "pnpjs". In that case, why reinvent the wheel?
- pnpjs has some other things except just wrapping around REST. For example caching, batching, managed metadata support (which is not supported in REST yet)
- fluent interface is awesome in pnpjs. I believe you have less typo errors and regression bugs with pnpjs
- your code is cleaner, as a result easier to maintain
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
For me the answer is pretty obvious: for sure you should use it.
A few things why I think so:
- the learning curve is very straightforward and not so difficult
- pnpjs is a wrapper on REST API, by using jQueryREST you will create your own "pnpjs". In that case, why reinvent the wheel?
- pnpjs has some other things except just wrapping around REST. For example caching, batching, managed metadata support (which is not supported in REST yet)
- fluent interface is awesome in pnpjs. I believe you have less typo errors and regression bugs with pnpjs
- your code is cleaner, as a result easier to maintain
For me the answer is pretty obvious: for sure you should use it.
A few things why I think so:
- the learning curve is very straightforward and not so difficult
- pnpjs is a wrapper on REST API, by using jQueryREST you will create your own "pnpjs". In that case, why reinvent the wheel?
- pnpjs has some other things except just wrapping around REST. For example caching, batching, managed metadata support (which is not supported in REST yet)
- fluent interface is awesome in pnpjs. I believe you have less typo errors and regression bugs with pnpjs
- your code is cleaner, as a result easier to maintain
edited 1 hour ago
answered 2 hours ago
Sergei Sergeev
8,75352240
8,75352240
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f249312%2fpnp-js-in-sharepoint%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password