#How do I return a component without Initalizing it?

2 messages · Page 1 of 1 (latest)

languid horizon
#

I have an object literal with keys corresponding to certian components. When I declare the object, the components are initialized, but because some of the components are passed variables as props and some of those variables aren't defined, the component tries to access undefined values. Is there any way to fix this inside the object literal instead of rewriting the component?

#

I think I have to use the component definition instead of the component inside tags and then pass relevant data to actual rendering