React - App

About

A app is a react javascript that will render the root element when loaded.

How to run multiple applications on one page

Example of:

module.exports = {
    entry: {
     vendor: ["@material-ui/styles"],
      app1: "./src/app.1.js",
      app2: "./src/app.2.js",
    },
    plugins: [
     new webpack.optimize.CommonsChunkPlugin({
       name: "vendor",
       minChunks: Infinity,
     }),
    ]
  }

Documentation / Reference


Powered by ComboStrap