import React from 'react'; import Cristal from 'react-cristal' class ConnMgr extends React.Component { constructor(props) { super(props) this.connect = this.connect.bind(this) } connect(action, from, to) { if (action) { console.log("conn", from, to) } } render() { const nodes = this.props.nodes let keys = Object.keys(nodes) // T O - - // F // R // O // M // const rows = keys.filter((_, i) => i > 0).map((k, i) => { const cols = keys.filter((_, j) => i >= j).map((kt, i) => { return (
{keys.slice(0, -1).map((i) => ( | {i} | ))}