Skip to content

Instantly share code, notes, and snippets.

@ryo33
Created August 26, 2016 12:09
Show Gist options
  • Save ryo33/695b160f4f1a972e952be39c0fbe1f37 to your computer and use it in GitHub Desktop.
Save ryo33/695b160f4f1a972e952be39c0fbe1f37 to your computer and use it in GitHub Desktop.
Reactで描画回数を制限する(ためのHOCを作った) ref: http://qiita.com/ryo33/items/1c70fd0fb8af2169d159
import throttle from 'react-throttle-render';
const wrappedComponent = throttle(component, 50);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment