Open in gallery
This sample is best viewed in the interactive gallery. Open now ยท Stay on this page

React Hooks Form Web Part

React Hooks Form Web Part

The React Hooks web part is an example of how to implement Hooks in Spfx. Hooks is a new feature included in React version 16.8, with the new version of SharePoint Framework (SPFx) version 1.9.1 we can use them in our developments. In this example we are going to see the different types of hooks that are available and with the comparison of how this implementation can be done without the Hooks to be able to observe the benefits of using it.

Open this sample in the gallery (popup panel): Open in gallery

Source: https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-hooks