Level 88
Something like this should push you in the right direction: https://stackoverflow.com/questions/29875869/react-jsx-dynamic-component-name
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
let say i have a json array like this:
[
{'componentName': 'Foo'},
{'componentName': 'Bar'},
]
the same time i have a components named Foo and Bar i want to to display the component named Foo using the json value . is there a way to accomplish that .
Please or to participate in this conversation.