JSX not allowed in files with extension '.js' resolve code example
Example 1: JSX not allowed in files with extension '.js'
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
}
Example 2: how to fix eslint jsx not allowed in js
JSX not Allowed in JS