Skip to content

Commit b75a8df

Browse files
committed
Merge branch 'master' of https://github.com/bkrem/react-d3-tree
2 parents c153b0c + eb15c91 commit b75a8df

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,23 @@ Statically hosted JSON or CSV files can be used as data sources via the addition
9595
```jsx
9696
import { Tree, treeUtil } from 'react-d3-tree';
9797

98-
const csvSource = 'https://raw.githubusercontent.com/bkrem/react-d3-tree/feature/add-csv-to-json-transform/examples/data/csv-example.csv';
98+
const csvSource = 'https://raw.githubusercontent.com/bkrem/react-d3-tree/master/docs/examples/data/csv-example.csv';
9999

100100
constructor() {
101101
super();
102102

103103
this.state = {
104104
data: undefined,
105105
};
106-
107-
componentWillMount() {
108-
treeUtil.parseCSV(csvSource)
109-
.then((data) => {
110-
this.setState({ data })
111-
})
112-
.catch((err) => console.error(err));
113-
}
106+
}
107+
108+
componentWillMount() {
109+
treeUtil.parseCSV(csvSource)
110+
.then((data) => {
111+
this.setState({ data })
112+
})
113+
.catch((err) => console.error(err));
114+
}
114115

115116
class MyComponent extends Component {
116117
render() {

0 commit comments

Comments
 (0)