I have a component How its work; When I mouse over on list object so its working anyway
import React from 'react';
const ExampleComponent = ({show}) => {
const componentClasses = ['example-component'];
if (show) { componentClasses.push('show'); }
return (
<div className={componentClasses.join(' ')}></div>
);
};
ExampleComponent.propTypes = {
show: React.PropTypes.bool.isRequired
};
export default ExampleComponent;
And I'm using like this;
import SubButtons from './subButtons';
return shownAccountList.map((item) => {
return(
<List>
<ListItem
primaryText={text={ item.accountItem }}
/>
<SubButtons show={this.state.subButtonsVisible}/>
</List>
);
Expected Result; I want only trigger the element I brought to the mouse for example if I selected line 1 Should work under the only line 1
Btw: I'm using material-ui . I accept if you have another recommendation.
