score:2

Accepted answer

you can trigger a re-render by adding a key property in combination with this.state.language to the aggridreact component instead of using this.forceupdate(). this should cause a re-render when you change the language via the button clicks:

<aggridreact
  key={this.state.language}
  ... other props
/>

here is an example in action.

i don’t see any issues with your code, this seems like more of an issue with the grid component failing to update. you are updating state correctly.

hopefully that helps!


Related Query

More Query from same tag