I have the following function:
update() {
    this.currentItem = [];
    //...Populate currentItem
    this.setState({
      currentItem
    });
  }
Which renders on the page like this;
render() {
   const { currentItem } = this.state;
   return {currentItem}
}
I then pass this function into a child component, like this:
<Component
   update={this.update.bind(this)}
/>
and then call it like this in my child component:
let { update } = this.props;
if (typeof update === "function")
  update();
The problem is that the update function does not re render the content I am updating on the parent page. As far as I understand this, whenever setState is called, render also gets called. render() does seem to be getting called, but it does not seem to display the updated value - why is this, and how can I resolve it?
I guess it could be to do with the fact that it is coming from a child component?
I have tried forceUpdate, but it does not re render the component either - what am I missing?
 
     
    