Incorrect warning for React Component
已回答
IDE: IntelliJ Ultimate
When I copy and paste the following code into IntelliJ, suspicious warning appears.
“Element Component doesn't have required attribute patientId” message appears, but the component don't have to receive the props.
This message appears only when I use generic props. For example, “Component2” in the following code can be rendered I expected.

请先登录再写评论。
Which IDE version do you use? Is TS service enabled in `Settings | Languages & Frameworks | TypeScript`?