[javascript] Invariant Violation: Objects are not valid as a React child

Found: object with keys

Which means you passing something is a key-value. So you need to modify your handler:

from
onItemClick(e, item) {
   this.setState({
     lang: item,
   });
}
to
onItemClick({e, item}) {
  this.setState({
    lang: item,
  });
}

You missed out the braces ({}).