eslint version check in react

JavaScript
  <div className={'sidebarOption ${selected && "sidebarOption--active"}'}>
Source

Also in JavaScript: