If you’re using react, chances are that you are using the whole babel + jsx + webpack stack (and you’re goddamn’ right). Your components files, the 1627219 of them, look like: import React from 'react' export function YourComponent() {
return <span>Hello, I do nothing</span>
} Now here is the protip that will save a lot of time, in your webpack.config.js: plugins: [
new webpack.ProvidePlugin({
React: 'react',
}),
],