If you configure in individual, then you lose access to the outer container and className becomes toastClassName
Controlled Progress Bar Example
import React, { Component } from'react';import { toast } from'react-toastify';import axios from'axios';classExampleextendsComponent {upload= () => {// we need to keep a reference of the toastId to be able to update itlet toastId =null;axios.request({ method:"post", url:"/foobar", data: myData,onUploadProgress: p => {constprogress=p.loaded /p.total;// check if we already displayed a toastif(toastId ===null){ toastId =toast('Upload in Progress', { progress: progress }); } else {toast.update(toastId, { progress: progress }) } } }).then (data => {// Upload is done! // The remaining progress bar will be filled up// The toast will be closed when the transition endtoast.done(toast.id) }) }render(){return ( <div> <buttononClick={this.upload}>Upload something</button></div>);}}