π Day 23 of
#36DaysofMockInterviews Challenge! π
Exciting journey today!
We're delving into React, exploring key topics. π
π Interview Ques:
- Understand the distinction between state and props, illustrated with a real-world example.
π§βπ»Live coding challenge
- Separate the list on the website into two parts: "Items that are in stock" and "Items that are not in stock" using the "in_stock" indicator. Only show the names of the drugs. π¦π
[
{
"drugName":"Crocin Tablet",
"drugId":"d1234",
"in_stock":true,
"drugSafety":"LASA"
},
{
"drugName":"Paracetamol",
"drugId":"d1235",
"in_stock":false,
"drugSafety":"NARCOTIC"
},
{
"drugName":"Calpol",
"drugId":"d1236",
"in_stock":true ,
"drugSafety":"LASA"
},
{
"drugName":"Centrizine 50",
"drugId":"d1237",
"in_stock":true,
"drugSafety":"HIGH RISK"
},
{
"drugName":"Calpol 80",
"drugId":"d1238",
"in_stock":false,
"drugSafety":"HIGH RISK"
},
{
"drugName":"Paracetamol 500",
"drugId":"d1230",
"in_stock":true,
"drugSafety":"NARCOTIC"
},
{
"drugName":"Calpol 50",
"drugId":"d1239",
"in_stock":false,
"drugSafety":"LASA"
},
{
"drugName":"Paracetamol 40",
"drugId":"d1233",
"in_stock":false,
"drugSafety":"NARCOTIC"
}
]