Skip to content
SPFx: Using React hooks to globally share service scopes between components
TypeScript CSS JavaScript
Branch: master
Clone or download
Pull request Compare This branch is 5 commits ahead of vman:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
config
src
teams
.editorconfig
.gitignore
.yo-rc.json
README.md
gulpfile.js
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

SPFX Service Scopes Hooks

This fork takes the great example provided by @vman and takes a "full hooks" approach to simplifying the codebase

  • Replaces Class Components with Functional Components
  • Removes the Higher Order Component in favour to useContext()
  • useEffect() used instead of componentDidMount()
  • useState() used instead this.setState()
You can’t perform that action at this time.