japgolly.scalajs.react.component.Generic
Not all components support this; ES6 classes don't.
(Since version 1.0.0) Renamed to modStateFn
(Since version 1.0.0) Renamed to setStateFn