#is there a better way to write this code?
7 messages · Page 1 of 1 (latest)
this is the wrong usage
Okay, didn't know that.
Ah right. You mean the snippet is wrong, true. Props should be attached to the Dynamic component itself
Also, I think you would do component={props.link ? Link : "div"}
Yes. I didn't think much about it. It is incorrect