JSX not allowed in files with extension '.js'
snippet in javascript

JSX not allowed in files with extension '.js'

user5169

"rules": {
  "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
}

how to fix eslint jsx not allowed in js

user9485

JSX not Allowed in JS