I have a demo here
I know this isn't a good question but the working code in my demo is causing an error in my actual code.
I have a simple React typescript app that just displays value from json data.
In my demo this works but in my actual code (that is nearly exactly the same) I get a typescript error.
The error is here {ProductData[key]
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type
I think I need to create an interface to describe the json and link that but I'm not sure how that interface should look
<div>
<ul>
{Object.keys(ProductData).map(key => (
<li key={key}>{ProductData[key].ProductSize.min}</li>
))}
</ul>
</div>