score:0

you missed the return statement from render function, also you have to return a single reactelement:

class app extends react.component {
  ...
  render() {
    return (
      <>
        {fetchedorders &&
          fetchedorders.map(order => {
            return (
              <orderswe
                order={order}
                ondelete={ondelete}
                history={this.props.history}
                key={order.orderhid}
              />
            );
          })}
      </>
    );
  }
}

moreover, try to log fetchedorders, according to the error it may be not an array object.


Related Query

More Query from same tag