const linkEvent = Inferno.linkEvent; function InputBox(props) { const { shaking, handleKeyDown } = props; const className = shaking ? '.shake' : ''; return h( `input${className}`, { type: 'text', value: props.value, onKeyDown: handleKeyDown, } ); }