Notes JS-5
Notes JS-5
***For laying out the elements in React we use the map method for array and
for dict we will extract the Object.Keys(dict) as an array and then we will apply
map method
In JS values extracted from input field will always be a string, even though you
mention the type as number, event.target.value will always be a string
Hence always convert to number Number(event.target.value) , or simply
+(event.tatget.value)
100 + “100” = 10000