You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, sorry for the late reply, I haven't been focusing on this lib since it got implemented in our project.
Yes this kind of use-case it not supported, this library is meant to convert an abstract tree of components defined as strings or simple functions, not really to support "real" React components, thought that could be a good improvement.
I think the easiest in your case is to provide a custom processMeta function in the options to output the relevant component name and the type as string so it can be simply handled.
I'm trying to convert a component that's wrapped in the connect method from react-redux.
The error I'm getting is cannot call a class as a function in Route.js
var props = processProps(tree.props); if (type === 'function') { return convertComponent(tree.type(props), key); }
The text was updated successfully, but these errors were encountered: