By now, you might be wondering how things change when we switch our underlying platform from a console app that runs on the server or workstation side to SharePoint Framework that always runs on the client side in a browser. As it turns out, it's not much different as you can still access the same REST APIs through SharePoint Framework. The main difference between our next example and the two previous examples is that everything runs within the constraints of SharePoint Framework, thus, development is done with TypeScript and through REST, not CSOM or JSOM (the JavaScript version of CSOM).
Let's create our new project first:
- Create a new folder in the desired location, and run the following command in a Command Prompt:
yo @microsoft/sharepoint
If it's been a while since you last ran Yeoman template generator, you might receive a notification that Yeoman can be updated:
- Simply cancel the current process (Ctrl + C) and run...