Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 796 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 796 Bytes

@redext/micro

Blazing fast, simple and complete solution for micro frontends

Installation

npm install -s @redext/micro
or
yarn add @redext/micro

Use It

import { registerMicroApp, registerMicroComponent } from '@redext/micro';

registerMicroApp({
  orgName: '@redext-micro', // option
  name: 'demo',
  activePath: 'micro',
  container: '#microfrontend',
  entry: 'http://localhost:5000',
  // loadScriptPath: '/root-config.jsx',
  isHash: true,
  // isProduction: true
});

registerMicroComponent({
  orgName: '@redext-micro', // option
  name: 'component',
  activePath: 'micro',
  container: '#micro-component',
  entry: 'http://localhost:5000/components/blocks/MicroDemo',
  // loadScriptPath: '/root-config.jsx',
  isHash: true,
  // isProduction: true
});