import React, { Component } from 'react'; import { serviceUrl } from '../constants'; class TreeDirList extends React.Component { constructor(props) { super(props); this.state = { isMourseEnter: false, highlight: '', } } onMouseEnter = () => { this.setState({ highlight: 'tr-highlight' }); } onMouseLeave = () => { this.setState({ highlight: '', }); } onMainNodeClick = () => { this.props.onMainNodeClick(this.props.node); } render() { let node = this.props.node; return (