Hello everyone,
I have data that I received from a third party endpoint that looks like the JSON below.
{
[...],
"id": "prod_id",
"attributes": {
"size",
"color"
},
"skus": {
"data":[
{
[...],
"attributes": {
"size": "Small",
"color": "green"
}
},
{
[...],
"attributes": {
"size": "Small",
"color": "red"
}
},
{
"attributes": {
"size": "Medium",
"color": "red"
}
]
}
}
I was wondering how I would go about creating a drop-down for a user to select their attributes. (For example, the user can select a size that is small and a color that is green.) I am currently using blaze, but I would be fine with an answer in react. Thank you.