A wrapper for react unstable_batchedupdates, support react-dom and react-native
npm install unstable_batchedupdates
import unstable_batchedupdates from 'unstable_batchedupdates';
unstable_batchedupdates(()=>{
this.setState(...);
this.setState(...);
this.setState(...);
});
If your first time publish a package, login first:
npm login --registry=http://registry.npmjs.org
Then you can publish:
npm run pub