You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the typescript template with the following example no react/jsx-key error is displayed on the div in the loop.
constlist=[{id: 1,title: "test"},{id: 2,title: "test"},];functionApp(){return(<divclassName="App">{list.map((item)=>(// No linting error here for missing key<div>{item.title}</div>))}</div>);}exportdefaultApp;
Is this intended or is it something to do with Typescript? I noticed there is an error if I use plain JS