https://github.com/ashot72/spfx-forums-hook
React SharePoint (SPFx) Forums Hooks
https://github.com/ashot72/spfx-forums-hook
forum hooks react react-hooks react-lazy sharepoint sharepoint-online spfx suspense
Last synced: about 2 months ago
JSON representation
React SharePoint (SPFx) Forums Hooks
- Host: GitHub
- URL: https://github.com/ashot72/spfx-forums-hook
- Owner: Ashot72
- Created: 2021-01-12T12:56:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T13:48:30.000Z (over 3 years ago)
- Last Synced: 2024-12-30T14:52:53.954Z (over 1 year ago)
- Topics: forum, hooks, react, react-hooks, react-lazy, sharepoint, sharepoint-online, spfx, suspense
- Language: TypeScript
- Homepage:
- Size: 4.39 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
I built a React Hooks based SharePoint SPFx forum. Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. You have 90% cleaner code with Hooks. The app uses React built-in, our custom and third-party hooks and shows how to use code splitting with React.lazy and Suspense.
You can download the package from [here](https://github.com/Ashot72/SPFx-Forums-Hook/tree/main/sharepoint/solution/react-forums-hooks.sppkg) and upload it to your Tenant App Catalog to run the forum.
To get started.
```
Clone the repository
git https://github.com/ashotik/SPFx-Forums-Hook
cd SPFx-Forums-Hook
# installs dependencies
npm install
# creates release package which should be deployed in SharePoint app catalog
npm run deploy-prod
```
Go to [Forums Hooks (SPFx) Video](https://youtu.be/TKfQWAVdbOc) page
Go to [Forums Hooks (SPFx) description](https://ashot72.github.io/SPFx-Forums-Hook/index.html) page