React export
Hello!
This is taken from codecademys intro course to React.
In the app.js file, this code example is used:
Then it says "On the last line of the above code block, MyComponent is exported so it can be used later."
So my question is, where is it exported to, before it is imported in an index.js file?
3 Replies
it's not, that's just the terminology that's used for a module file making something available when it's imported
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Very good!
And the reason I asked was because I was worried that code was being cached somewhere, and that would affect performance, whatever.
Thanx guys! 🙌