bio-dark-midnight-theme
Version:
A super-cool dark theme for VS Code by studio.bio inspired by Oceanic Next and Solarized Dark. Optimized for JavaScript (React), PHP, HTML, and Sass/SCSS.
35 lines (29 loc) • 778 B
JavaScript
import React from 'react'
import calculate from '../logic/calculate'
import './App.css'
import ButtonPanel from './ButtonPanel'
import Display from './Display'
// this is a comment
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 (
<div className="component-app">
Tacos
<Display value={this.state.next || this.state.total || '0'} />
<ButtonPanel clickHandler={this.handleClick} />
</div>
)
}
}
export default App