text: import React from 'react'
  import StreamForm from './streamForm'
  import {connect} from 'react-redux'
  import {createStream} from '../../actions'
  
  class streamCreate extends React.Component {
     
      
      onSubmit=formValues=>{
          this.props.createStream(formValues)
      }
      render(){
      return (
         <div><h2>Create a Stream</h2>
         <StreamForm onSubmit={this.onSubmit}></StreamForm></div>
      )
  }
  }
  
  export default connect(null,{createStream})(streamCreate)
  