import React, {Component} from 'react'; import styles from './List.css'; export default class List extends Component { constructor(props) { super(props); this.handleClickItem = this.handleClickItem.bind(this); } handleClickItem(itemId) { if (this.props.onChange) { this.props.onChange(itemId); } } render() { const {children, activeItem, className = ''} = this.props; return (