I ran into the same issue as here
https://github.com/babel/babel/issues/2504
Thus, any file that has only stateless components should have react, imported as import React from 'react';, which is a little annoying (eslint gives an error as an unused variable, which, as I understand it, can be suppressed, is still ...). Is there any way to avoid this import in customization webpack.
thanks.
source
share