mqtt-control-map/src/index.jsx
uwap ccd9bcd3b5 Types are now bidirectional
It is still possible to define types as functions (Buffer => string for 
state topics, string => Buffer for command topics). Otherwise types have 
from and to properties.
(Fixes #101)
2020-10-19 05:45:09 +02:00

21 lines
524 B
JavaScript

// @flow
import "core-js/stable";
import "regenerator-runtime/runtime";
import "../node_modules/leaflet/dist/leaflet.css";
import React from "react";
import ReactDOM from "react-dom";
import App from "components/App";
import "../css/styles.css";
import type { Config } from "config/flowtypes";
const config: Config = window.config;
document.title = `${config.space.name} Map`;
// $FlowFixMe
const contentElement: Element = document.getElementById("content");
ReactDOM.render(<App config={config} />, contentElement);