import { h, Component } from 'preact'; import './input.scss'; class Input extends Component { renderText(props) { let inputClassName = props.error ? 'input-error' : ''; return
{ this.props.error }