JSFiddle - React, Tailwind, and code Playground
by youssef moudine
JavaScript
var children = [
{
"_id": "5b681bb1ea68c9125058e523",
"key": "a1",
"parent": "5b5839122e94331c944f9be0",
"__v": 0,
"code": "1",
"cliquable": false,
"libelle": {
"ar": "موقف الفئة (فقط الفئات الرئيسية) في القائمة",
"fr": "A1"
}
},
{
"_id": "5b681b92ea68c9125058e522",
"key": "a2",
"parent": "5b5839122e94331c944f9be0",
"__v": 0,
"code": "2",
"cliquable": false,
"libelle": {
"ar": "صياغة باللغة العربية صياغة باللغة العربية صياغة باللغة العربية صياغة باللغة العربية صياغة باللغة العربية",
"fr": "A2"
}
},
{
"_id": "5b681ce3ea68c9125058e524",
"key": "a4",
"parent": "5b5839122e94331c944f9be0",
"__v": 0,
"code": "4",
"cliquable": false,
"libelle": {
"ar": "A4-ar",
"fr": "A4"
}
},
{
"_id": "5b681f37148d5e089c301695",
"key": "a5",
"parent": "5b5839122e94331c944f9be0",
"__v": 0,
"code": "5",
"cliquable": false,
"libelle": {
"ar": "A5",
"fr": "A5"
}
},
{
"_id": "5b681f4a148d5e089c301696",
"key": "a6",
"parent": "5b5839122e94331c944f9be0",
"__v": 0,
"code": "6",
"cliquable": false,
"libelle": {
"ar": "A6",
"fr": "A6"
}
},
{
"_id": "5b681f6d148d5e089c301697",
"key": "a7",
"parent": "5b5839122e94331c944f9be0",
"__v": 0,
"code": "7",
"cliquable": false,
"libelle": {
"ar": "A7",
"fr": "A7"
}
},
{
"_id": "5b681f85148d5e089c301699",
"key": "a9",
...