You should use default for exporting the components
import User from "user";export default function MyProfile {return <User type="customer">//...</User>;}
See Class
```jsx harmony import React from "react"; import User from "user";
export default class MyProfile extends React.Component {
render() {
return
</p></details>With the export specifier, the MyProfile is going to be the member and exported to this module and the same can be imported without mentioning the name in other components.