20 lines
363 B
JavaScript
20 lines
363 B
JavaScript
import React, { useEffect } from "react";
|
|
/*
|
|
import ReactDOM from "react-dom";
|
|
import * as d3 from "d3";
|
|
import { graphviz } from "d3-graphviz";
|
|
*/
|
|
|
|
export function Graph() {
|
|
return "Hello";
|
|
/*
|
|
let digraph = `digraph {
|
|
a -> b
|
|
}`;
|
|
useEffect(() => {
|
|
d3.select("#graph").graphviz().renderDot(digraph);
|
|
}, []);
|
|
return <div id="graph" />;
|
|
*/
|
|
}
|