Javascript Create Array With Key Value Pair In Jsx