Skip to content

Instantly share code, notes, and snippets.

@kaueburiti
kaueburiti / Sass-like PostCSS config
Last active Oct 20, 2016
Basic PostCSS config to work with some Sass features
View Sass-like PostCSS config
// Webpack configs
(...)
postcss: function(webpack) {
return [
require('postcss-import')({
addDependencyTo: webpack,
root: rootPath,
path: [srcPath, nodeModulesPath]
}),
View CurrencyConverter.js
class CurrencyConverter extends Component {
state = {
isSwapped: false,
originCurrencyValue: 0,
destinationCurrencyValue: 0,
}
render() {
const { baseCurrency,quoteCurrency } = this.props
const { originCurrencyValue, destinationCurrencyValue, isSwapped} = this.state
You can’t perform that action at this time.