import React from "react";
class Demo extends React.Component{
  constructor(props){
    super(props)
    this.state{
      initData: ""
    }
  }
  render(){
      return(
        <div>{ this.state.initData }<div>
      )
  }
}
function mapStateToProps(state) {
  const { demoData } = state.demo;
  return { demoData };
}
export default connect(mapStateToProps)(Demo );how do I initialize state with demoData? Several hook functions were used without success.
