Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vman/spfx-react-hooks-customstate
Create a custom React hook to mimic class component's setState behaviour
https://github.com/vman/spfx-react-hooks-customstate
Last synced: 23 days ago
JSON representation
Create a custom React hook to mimic class component's setState behaviour
- Host: GitHub
- URL: https://github.com/vman/spfx-react-hooks-customstate
- Owner: vman
- Created: 2020-05-24T12:57:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T09:13:47.000Z (over 1 year ago)
- Last Synced: 2024-04-10T16:00:13.181Z (7 months ago)
- Language: TypeScript
- Homepage: https://www.vrdmn.com/2020/05/working-with-spfx-and-react-hooks.html
- Size: 1.21 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## spfx-react-hooks-customstate
Code accompanies the blog post: [Create a custom React hook to mimic class component's setState behaviour](https://www.vrdmn.com/2020/05/working-with-spfx-and-react-hooks.html)
### Building the code
```bash
git clone the repo
npm i
npm i -g gulp
gulp
```### Build options
```
gulp clean
gulp serve
gulp bundle
gulp package-solution
```