`js/react/unused-or-undefined-state-property` doesn't take into account the static method `getDerivedStateFromProps`. See example: https://lgtm.com/projects/g/ant-design/ant-design/snapshot/395c5ddd8d3db88e9c34cf332ec77b3c34077cfe/files/components/tag/index.tsx#xf4fd4ef83f04a4fd:1 The state property `mounted` is read in `getDerivedStateFromProps()` on line 48.