PNP JS in SharePoint

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
3
down vote

favorite
1












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?










share|improve this question





























    up vote
    3
    down vote

    favorite
    1












    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?










    share|improve this question

























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      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?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago









      helb

      439312




      439312










      asked 2 hours ago









      Zakir HC

      2,67332248




      2,67332248




















          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





          share|improve this answer






















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "232"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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






























            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





            share|improve this answer


























              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





              share|improve this answer
























                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





                share|improve this answer














                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






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 1 hour ago

























                answered 2 hours ago









                Sergei Sergeev

                8,75352240




                8,75352240



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery