What is SharePoint Framework(SPFx)
Features of SharePoint Framework
- The webpart created by SPFx does not have any iframes in it, this will overcome the disadvantage of SharePoint apps having iframe.
- The developer can choose his own development frameworks like React, Knockout, Handlebars, Angular and more.
- This enables the developer to access the life cycle.
- The tools are based on common open source client development tools such as npm, TypeScript, Yeoman, webpack, and gulp.
- The performance is better and reliable.
- This will run in the context of the current user.
- The administrator have the ability to deploy the SPFx apps to different site collections in a single click.
- There is no need to trust it even if it is deployed like SharePoint app.
- SPFx webparts are compatible in both classic and modern pages.
- SPFX webpart have very advanced property panel customization.
SharePoint Framework allow the developer to write codes in type script and they can utilize object-oriented programming techniques in writing their codes.
Why SharePoint Framework is important
The disadvantage of this is that there is no option for developers to create additional property for these webparts, the script editor webpart is not easy to package and reuse, it is in a different page. A user with design permission can change the webpart code by editing the page and these webparts are not marked as safe for scripting. Hence, these webparts will be prevent running in the sites created from self service with no script feature enabled.
SharePoint app model have lots of advantages, the apps created using SharePoint app model will be fully isolated from the SharePoint web, so there is less chance of breaking the functionality due to the use of malfunctioning code and this will still be useful for creating advanced functional apps.
But the disadvantage of sharepoint apps is, they create an iframe to render the web app, this is not good for mobile compatible pages. The add-ins added in the on-premises pages with basic windows authentication will give continuous login prompts, and this can be fixed only in the same network using credential management feature of internet explorer or group policy management tools. But users who access the site outside the network will get the login prompt.
Most of the disadvantage of the old SharePoint development model can be avoided by the new development model using SharePoint framework. The development of new framework webpart can be handled using the Yeoman generator and Visual Studio code. This will make the development a lot easier and more productive.