get selected value on componentdidmount reactjs

Solutions on MaxInterview for get selected value on componentdidmount reactjs by the best coders in the world

showing results for - "get selected value on componentdidmount reactjs"
Micaela
22 Jun 2017
1let student = studentData.find(data => data.roll === 5);
2console.log(student); //Output: {"roll":5,"name":"Sagor","student_type":"normal"}
Mariana
13 Jun 2016
1let studentData = [
2  {
3        "roll":5,
4        "name":"Sagor",
5        "student_type":"normal"
6  },
7  {
8        "roll":6,
9        "name":"Humayun Faridi",
10        "student_type":"excellent"
11  }
12]