Check out example codes for "JSX elements cannot have multiple attributes with the same name. TS17001". It will help you in understanding the concepts better.

Code Example 1

<!-- InCorrect -->
<img src="images/a.jpg" src="ime" />
 
<!-- Correct -->
 <img src="images/a.jpg" alt="ime" />

Learn ReactJs, React Native from akashmittal.com