import React from 'react'

class Input extends React.Component {
  constructor() {
    super()
  }

  render() {
    return (
      <input onKeyUp={this.props.onType} type="text"></input>
    )
  }
}

export default Input;

import React from 'react'

class Input extends React.Component {
  render() {
    return (
      <textarea onKeyUp={this.props.onType}></textarea>
    )
  }
}

export default Input;

Use textarea to handle linebreaks in text.
Use textarea to handle linebreaks in text.
