I'm passing a function to a component (which works btw, loads language translated product list as json) :
<a onClick={this.props.lang_zh} href="#">ZH</a></li>
I also have a translation function (which works, translates all other content e.g. UI, text elements). This is a child component btw, i18n-react:
<a onClick={() => changeLanguage('zh')} href="#">ZH</a>
I need them both to load, but when I combine them onClick the passed props are not being received.
this answer addresses multiple functions but neither separate method, inline arrow functions are working with combination of function and props (which type is function btw not string). Any info/feeback appreciated.