1.0.3 • Published 2 years ago

unstable_batchedupdates v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

unstable_batchedupdates

A wrapper for react unstable_batchedupdates, support react-dom and react-native

Install

npm install unstable_batchedupdates

Usage

import unstable_batchedupdates from 'unstable_batchedupdates';

unstable_batchedupdates(()=>{
    this.setState(...);
    this.setState(...);
    this.setState(...);
});

Publish

If your first time publish a package, login first:

npm login --registry=http://registry.npmjs.org

Then you can publish:

npm run pub