Sha256: ebdf63d5dc1a20393ec1fab8a3d5ac321060c5ce7929560b4e252c2cb1343a0c

Contents?: true

Size: 596 Bytes

Versions: 28

Compression:

Stored size: 596 Bytes

Contents

import React from "react";
import ReactDOM from "react-dom";
import singleSpaReact from "single-spa-react";
import Root from "./root.component";

const lifecycles = singleSpaReact({
  React,
  ReactDOM,
  rootComponent: Root,
  errorBoundary(err, info, props) {
    // Customize the root error boundary for your microfrontend here.
    return null;
  },
  domElementGetter: function () {
    let elem = document.getElementById("openc3-tool");
    if (elem) {
      return elem;
    } else {
      return new HTMLElement();
    }
  },
});

export const { bootstrap, mount, unmount } = lifecycles;

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
openc3-6.2.1 templates/tool_react/src/openc3-tool_name.js
openc3-6.2.0 templates/tool_react/src/openc3-tool_name.js
openc3-6.1.0 templates/tool_react/src/openc3-tool_name.js
openc3-6.0.2 templates/tool_react/src/openc3-tool_name.js
openc3-6.0.1 templates/tool_react/src/openc3-tool_name.js
openc3-6.0.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.20.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.19.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.18.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.17.1 templates/tool_react/src/openc3-tool_name.js
openc3-5.17.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.16.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.15.2 templates/tool_react/src/openc3-tool_name.js
openc3-5.15.1 templates/tool_react/src/openc3-tool_name.js
openc3-5.15.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.14.2 templates/tool_react/src/openc3-tool_name.js
openc3-5.14.1 templates/tool_react/src/openc3-tool_name.js
openc3-5.14.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.13.0 templates/tool_react/src/openc3-tool_name.js
openc3-5.12.0 templates/tool_react/src/openc3-tool_name.js