score:1

Accepted answer
export const getAppBar = (handleDrawerClick) => {
  return(
    <AppBar 
      title="My AppBar" 
      className="st_appBarClass" 
      titleStyle={{ color: "#FFFFFF" }}
      onLeftIconButtonClick={handleDrawerClick} //Remove ()
    />
  );
}

score:1

<div onClick={this.handleDrawerClick} className='product-list-wrapper'> //<----here
          {/*<ProductList products={products} />*/}
          {getAppBar(this.handleDrawerClick)}
          {getMenuBar(this.state.isMenuOpened)}
        </div>

Related Query

More Query from same tag