is there a way, to be able to target a react component based on the name provided, the name is inside the json file, for example: left_side_bar, top_nav, footer, etc
And then render multiple child components using the .map function inside React Component with the corresponding name.
{
"name": "top_nav",
"text": "Top Navigation",
"url": "",
"icon": "",
"items": [
{
"name": "overview",
"text": "Overview",
"url": "http://tpa.gatewaypro.com/overview",
"icon": "tpa_overview_icon.jpg",
"items": []
},
{
"name": "plan-health",
"text": "Plan Health",
"url": "http://tpa.gatewaypro.com/plan-health/",
"icon": "tpa_plan_health_icon.jpg",
"items": []
},
{
"name": "employees",
"text": "Employees",
"url": "http://tpa.gatewaypro.com/employees",
"icon": "tpa_employees_icon.jpg",
"items": []
}
]
}
in the above example: "name": "top_nav", could have been left_side_bar, which would then mean instead of targeting the top_nav component inside react, the left_side_bar component... I guess the better question is ask is, is it even possible to "target" a component in react. You know like you would have in jQuery/javascript $(#idName).append(stuff);
or do a find and place?