I'm writing my React component in WebStorm\IntelliJ 2017.3 this way:
class Header extends React.Component {
render = () => {
}
}
The problem is that the IDE analysis mark the field render()
as not used.
Is there something I can change in the project configuration to enable it?
The right syntax for render is not arrow function, so you would be better to write it as bellow:
class Header extends React.Component {
render () {
}
}