プロジェクトで反応を使用していますが、React.Component クラスのインポートは問題なく機能します。ただし、何も拡張しないバニラ es6 クラスをインポートしようとすると、失敗します。eslint は問題なくコンパイルされますが。インポートされたクラスもコンストラクターで null です。
import Utils from "../../common/services/Utils";
componentWilReceiveProps(newProps){
Utils // here is null
}
class Utils {
test() {
// do nothing
}
}
export default Utils;