DefinitelyTyped/types/react-d3-graph/react-d3-graph-tests.tsx
Harry Goode 7092c0f044
Feature/react d3 graph (#41953)
* react-d3-graph types

This is our first time submitting something to this git repo.
This is the type definition for the node module 'react-d3-graph'.

* Test added

* tests fixed

* Update package.json

* Update react-d3-graph-tests.tsx

* Update package.json

* Delete package.json

* Create tslint.json

* Update index.d.ts

* Update react-d3-graph-tests.tsx

* Update package.json
2020-01-30 13:20:21 -08:00

15 lines
323 B
TypeScript

import { Graph, Link, Node } from "react-d3-graph";
import * as React from 'react';
export class Example extends React.Component {
render(): React.ReactElement {
return (
<div>
<Graph id="test"/>
<Link/>
<Node/>
</div>
);
}
}