const data = [ { id: 2, name: 'элемент', count: 0}, { id: 1, name: 'элемент', count: 0}, { id: 0, name: 'элемент', count: 0} ] const appendItem = () => { data.unshift({ id: data.length, name: 'элемент', count: 0 }) render() } class Counter extends React.PureComponent { constructor(props) { super(props); this.state = { count: props.count } } handleClick = () => { this.setState({ count: this.state.count += 1 }) this.forceUpdate() }; render() { return {this.state.count} } } const ListItem = ({ item }) =>