Hello! This is taken from codecademys intro course to React.
In the app.js file, this code example is used:
import React from 'react';function MyComponent() { return <h1>Hello, I'm a functional React Component!</h1>;}export default MyComponent;
import React from 'react';function MyComponent() { return <h1>Hello, I'm a functional React Component!</h1>;}export default MyComponent;
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?