utility-function-extractor/packages/webpage-refactor/components/graph/graph.js

20 lines
363 B
JavaScript
Raw Normal View History

2022-06-17 22:48:11 +00:00
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" />;
*/
}