How to configure react? for webpack3.10

module: {
    rules: [
        {
            test: /\.js$/,
            exclude: /(node_modules)/,
            use: {
                loader: "babel-loader",
                options: {
                    presets: ["env", "react"]
                }
            }
        }
    ]
},

webpack.config.js adds react to report an error in this way, but all the online methods have been tried but not solved. Webpack version 3.10, how to add react and load it with babel-loader?

May.22,2021

it took a lot of effort to install babel-preset-react

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-1bf4570-31f08.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-1bf4570-31f08.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?