Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```