Using inline event listeners is considered a bad practice in HTML, but seems inline is the only option to use event listener in React? Is this a bad design?