I would like to know if there is a better way to conditionally pass a prop than using an if-statement.
For example, right now I have:
var parent = R
also you can try this short hand way