Let’s go! Learn SPFx Today! | Build a webpart using ReactJS in Real Time - ZERO TO HERO PART 3 of 5

Поділитися
Вставка
  • Опубліковано 29 сер 2022
  • #spfx #sharepoint #webpart
    In this mini series of 5 episodes we set up the latest 2022 1.15.2 development environment and build a SharePoint webpart using the SharePoint Framework and the PnP Controls
    pnp/sp
    spfx-react-controls
    spfx-react-property-controls
    By the end of the 5 episodes you will know how to build a webpart using the latest SharePoint Framework and PnP Controls
    For more tutorials, see our playlist/series "SharePoint Framework for Beginners"
    Source Code: github.com/robpearmain/spfx-pnp
    If you would like the source code, or require support please support us on Patreon at / robertsdevtalk
    Why not also head over to www.robertsdevtalk.com and sign up, for latest news
    Whether you develop in Javascript or a Javascript framework such as ReactJS or VueJS, you will benefit from this weekly series.
    ☕️ Don't forget, old developers need coffee (and.. beer and pizza too 🍺 🍕)
    www.buymeacoffee.com/Robertsd...
    📧 📫 Join us on our developer journey! Sign up to our email newsletter:
    robertsdevtalk.com
    🐦 Follow us on Twitter:
    / robertsdevtalk
    🎶 Music by Epidemic Sound:
    www.epidemicsound.com/referra...
    Our gear - click through to support our channel! :)
    Camera (Canon M50)
    🇬🇧 UK: amzn.to/3sUbzuL
    🇺🇸 US: amzn.to/3uBsG5c
    Camera mic (RODE VideoMic Pro)
    🇬🇧 UK: amzn.to/3ml8xgC
    🇺🇸 US: amzn.to/2RkGxyi
    Camera tripod (Manfrotto Compact tripod):
    🇬🇧 UK: amzn.to/3fJGyWU
    🇺🇸 US: amzn.to/3mF4oV2
    Voiceover Mic (Blue Yeti)
    🇬🇧 UK: amzn.to/2PV7UOQ
    🇺🇸 US: amzn.to/3uMiEym
    Chris's dev mouse for PC (Logitech MX Master 3)
    🇬🇧 UK: amzn.to/39K7BNV
    🇺🇸 US: amzn.to/3uKYvso
    Chris's dev keyboard for PC (Logitech MX Keys)
    🇬🇧 UK: amzn.to/3rSbHcX
    🇺🇸 US: amzn.to/3a6Unef
    Rob's dev keyboard for Mac (Apple Magic Keyboard)
    🇬🇧 UK: amzn.to/3dEQpKG
    🇺🇸 US: amzn.to/3sb6JZc
    Rob's dev mouse for Mac (Apple Magic Mouse)
    🇬🇧 UK: amzn.to/3sRCQhr
    🇺🇸 US: amzn.to/3mFi6qS
    Icons in this video kindly provided by FlatIcon from Freepik
    www.freepik.com
    www.flaticon.com
    Disclaimer - some of our links are affiliate links, which means that we receive a small commission for any sales made via those links, at no extra cost to you - so a great way to support our channel! Thank you so much for your support 😊

КОМЕНТАРІ • 31

  • @emilioscaccaglia6134
    @emilioscaccaglia6134 2 місяці тому +1

    thank for all ...

    • @RDT
      @RDT  2 місяці тому

      You are very welcome

  • @vodinaefem6093
    @vodinaefem6093 Рік тому

    Thank you !

  • @iainhmunro
    @iainhmunro Рік тому +1

    Excellent - thanks

    • @RDT
      @RDT  Рік тому

      Thanks for your kind comment and support of the channel

  • @mansoorqaisrani5644
    @mansoorqaisrani5644 9 місяців тому +1

    Thanks sir you have helped me a lot.

    • @RDT
      @RDT  9 місяців тому

      Glad to hear that. Thanks for supporting the channel

  • @MuhammadAdnan2.0
    @MuhammadAdnan2.0 Рік тому +1

    great feature looking forward ,,,,

    • @RDT
      @RDT  Рік тому +1

      Thanks for the kind comment and support of the channel

    • @MuhammadAdnan2.0
      @MuhammadAdnan2.0 Рік тому

      @@RDT waiting for more sir...

  • @abenetbeyene3398
    @abenetbeyene3398 Рік тому +1

    sweet

  • @jakasnazwa123
    @jakasnazwa123 Рік тому +1

    Nice, thx.
    One question. What do you prefer/like (or best practise) create interface or use any type ?

    • @RDT
      @RDT  Рік тому +1

      I would always use a type. Due to some issue with PnP and the context the workaround is currently to use ‘any’ which is a shame and hopefully will be resolved. If you need to create a type from an API I have a video here which makes it easy Typescript Interface from a JSON API in 2 Minutes using QuickType
      ua-cam.com/video/7Y_2ywQMQEY/v-deo.html

  • @dimitrispapakos4020
    @dimitrispapakos4020 3 місяці тому +1

    Is it possible to extract the ATTACHMENTS default column of the list please? I do get "false" on rendering. Thanks.

    • @RDT
      @RDT  2 місяці тому

      Yes, pnp.github.io/pnpjs/sp/attachments/

  • @dimitrispapakos4020
    @dimitrispapakos4020 6 місяців тому +1

    Merry Christmas. You code now works perfect. however I have a list with 1700 items your code displays only first 100..... any ideas how to fix this please?

    • @RDT
      @RDT  6 місяців тому

      Yes, on the url call to the api to get list items add &top=1000 or however many you want

  • @muhammadfaryadazim6110
    @muhammadfaryadazim6110 Рік тому +1

    how to change base url , currently its using local url , but i want to setup anotherone api base url

    • @RDT
      @RDT  Рік тому

      Hi. You can change the URL for the debug site in the config file. If you mean change API for lists, you can use the full path but it may struggle with credentials.

  • @magistasanchez9984
    @magistasanchez9984 3 місяці тому +1

    How render the list as drop-down menu?

    • @RDT
      @RDT  3 місяці тому

      This might help stackoverflow.com/questions/61764911/spfx-show-list-items-in-a-drop-down-not-in-web-part-property

    • @magistasanchez9984
      @magistasanchez9984 3 місяці тому

      @@RDT I mean I have the list data from SharePoint how to convert that data and render it in a drop-down menu..could you help?
      Thank you

  • @dimitrispapakos4020
    @dimitrispapakos4020 7 місяців тому +1

    const LOG_SOURCE = 'FAQ Webpart'; build failed variable delcared but never used any suggesitons please

    • @RDT
      @RDT  7 місяців тому

      If you comment it out does it build.?

    • @TimSmith714
      @TimSmith714 6 місяців тому

      That worked for me@@RDT

  • @cmac6877
    @cmac6877 11 місяців тому +1

    notice how tutorials always skip over the person field ;)

    • @RDT
      @RDT  11 місяців тому

      That's true! Maybe I should do a tutorial dedicated to the person field

  • @carreonmiguel
    @carreonmiguel Рік тому +1

    I have the next error:
    const element: React.ReactElement
    Type 'DetailedReactHTMLElement' is not assignable to type 'ReactElement'.
    Types of property 'props' are incompatible.
    Type 'InputHTMLAttributes' is missing the following properties from type 'IFaqProps': description, isDarkTheme, environmentMessage, hasTeamsContext, and 2 more.ts(2322)
    Can you help me ?

    • @RDT
      @RDT  Рік тому +1

      Are you passing in all of the properties from the .ts to the .tsx? The source code is here for reference github.com/robpearmain/spfx-pnp

    • @carreonmiguel
      @carreonmiguel Рік тому

      @@RDT thanks