Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kaiserkais's avatar

react dynamic component from json

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 .

0 likes
1 reply

Please or to participate in this conversation.