frontend-collective / frontend-collective/react-sortable-tree-theme-file-explorer
I'm Using On Windows 10 But Example Fails
- Dominant language
- JavaScript
- Stars
- 140
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I am trying to use your library but so far I got only errors. Perhaps you can let me know where I am wrong. My code:
```
import React, { Component } from 'react';
import SortableTree from 'react-sortable-tree';
import FileExplorerTheme from 'react-sortable-tree-theme-file-explorer';
export default class Tree extends Component {
constructor(props) {
super(props);
this.state = {
treeData: [{ title: '.', children: [{ title: 'index.js' }] }],
};
}
render() {
return (
this.setState({ treeData })}
theme={FileExplorerTheme}
/>
);
}
}
```
Instead of './src/ I made it '.' since there is no './src'. However, I intend to use this to display a specific folder on the Windows PC so please let me know what to do. Thank you!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.