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
What is the difference between <rt-import name="TagName" from "module_name"> and <rt-import name="*" as="TagName" from "module_name"> ?
For some module, I tried first one and I got the error message like below.
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Calendar3`
After some googling I tried second one, and then It works well.
Can anybody explain the difference between first and second one?
The text was updated successfully, but these errors were encountered:
To understand which to use, you should know how what you are importing was exported in the first place (this applies generally, not just for react-templates).
The only thing you should be aware is that react-templates itself does export as a "whole", so if you are importing from react-templates (stateless components or stateful render functions) you should use the latter syntax.
What is the difference between
<rt-import name="TagName" from "module_name">
and<rt-import name="*" as="TagName" from "module_name">
?For some module, I tried first one and I got the error message like below.
After some googling I tried second one, and then It works well.
Can anybody explain the difference between first and second one?
The text was updated successfully, but these errors were encountered: