#Can any name be used for imported components?
9 messages ยท Page 1 of 1 (latest)
you can use any name, I think it's like import default as.
Capital letter is not needed for import but needed to be used as Component.
Overall the name does not really matter but when you try to use the component it might conflict with the already existing things.
Like if you have "import Header from ..." and then try to use <Header></Header> There might be a conflict.
I tend to go with things like "import my_Header from .... " or something of the like
with Capital letter ๐ "My_Header" just tried small case does not work for components.
Oops my bad, yeah it would be capital
I wont edit my comment though. Good info for others ๐
all good, this is a discussion.