Incorrect warning for React Component
Answered
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.

Please sign in to leave a comment.
Which IDE version do you use? Is TS service enabled in `Settings | Languages & Frameworks | TypeScript`?