Skip to content

Instantly share code, notes, and snippets.

class CurrencyConverter extends Component {
state = {
isSwapped: false,
originCurrencyValue: 0,
destinationCurrencyValue: 0,
}
render() {
const { baseCurrency,quoteCurrency } = this.props
const { originCurrencyValue, destinationCurrencyValue, isSwapped} = this.state
@kaueburiti
kaueburiti / Sass-like PostCSS config
Last active October 20, 2016 12:44
Basic PostCSS config to work with some Sass features
// Webpack configs
(...)
postcss: function(webpack) {
return [
require('postcss-import')({
addDependencyTo: webpack,
root: rootPath,
path: [srcPath, nodeModulesPath]
}),