Dynamic Component & Props
I'm having a hard time making use of the <Dynamic/> component and passing props to the underlying component.
This is the dynamic component:
Here, it should pass to the underlying component the id and onClick properties
I'm using it like this:
But upon usage and further inspection, it does not pass the properties, no sure why, as documentation shows this example for this:
Any idea of how to make this work?
This is the dynamic component:
Here, it should pass to the underlying component the id and onClick properties
I'm using it like this:
But upon usage and further inspection, it does not pass the properties, no sure why, as documentation shows this example for this:
<Dynamic component={someComponent} someProp="someValue" />.Any idea of how to make this work?
