import React from 'react'; import calculate from '../logic/calculate'; import './App.css'; import ButtonPanel from './ButtonPanel'; import Display from './Display'; class App extends React.Component { constructor(props) { super(props) this.state = { total: null, next: null, operation: null } } handleClick = buttonName => { this.setState(calculate(this.state, buttonName)) } render() { return (