ReferenceError: React is not defined

browser error ReferenceError: React is not defined

//login.js
import React from "react";
import { render } from "react-dom";


render(
    <h1>test</h1>,
    document.getElementById("root")
);
//webpack.config.js
                test: /\.js$/,
                exclude: path.resolve(__dirname, "node_modules"),
                include: path.resolve(__dirname, "public/src"),
                loader: "babel-loader",
                query: { //babel
                    "presets": ["env", "react"]
                }
              ...
              new webpack.ProvidePlugin({
                "React": "react",
              })

the generated js also includes react, but still reports an error

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf928a-466e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf928a-466e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?