/* global document React ReactDOM */ import Price, {PRICE_TYPE} from '..'; // eslint-disable-next-line import/no-unassigned-import import '../style.css'; class App extends React.Component { constructor(props) { super(props); // eslint-disable-next-line react/state-in-constructor this.state = { currencyFirst: false, postfix: '', prefix: '' }; this.handleChangeCurrencyFirst = this.handleChangeCurrencyFirst.bind(this); this.handleChangePostfix = this.handleChangePostfix.bind(this); this.handleChangePrefix = this.handleChangePrefix.bind(this); } handleChangeCurrencyFirst() { this.setState(previousState => ({ currencyFirst: !previousState.currencyFirst })); } handleChangePostfix({target: {value}}) { this.setState({postfix: value}); } handleChangePrefix({target: {value}}) { this.setState({prefix: value}); } render() { const { currencyFirst, postfix, prefix } = this.state; return (

Old:
New:
Sale:
); } } ReactDOM.render(, document.querySelector('#app'));