Does the import corresponding to es6 export default class have to introduce the same class name?

The introduction part corresponding to export default a
in

impression can be directly import. You can lead to this a, in which"." It can be any self-named variable,

when writing code today, suddenly notice:
export default class x extends React.Component {

When

is introduced, you must write import x. You can"t name it arbitrarily. It can only be a variable x. I feel confused.


import x as 

Yes.

clipboard.png


export default can customize the loading name, and export must have the corresponding name


import * as SomeName from './class';
.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb3825-48237.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb3825-48237.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?