Skip to content

Instantly share code, notes, and snippets.

View tkskumar's full-sized avatar

Tarun sharma tkskumar

  • Srijan Technologies
  • Goa
View GitHub Profile
if (process.env.NODE_ENV !== "production") {
require("dotenv").load();
}
const path = require("path");
const storage = require("azure-storage");
const blobService = storage.createBlobService();
const listContainers = async () => {
```
setState()
- is Asynchronous
- can have a function as a parameter instead of object
- can accepts a Callback function as a second argument (optional)
- does not return promise
```
function updateState(){
this.setState({load: true}, () => {