Export {default} from'. / home'; what syntax is this? How do you understand it?

Today, I configured a project with nowaGUI, and I was a little confused when using this syntax, rookie. Only one export default home is used in
. / home to export a class.

how to understand this way of writing ~


is equivalent to

import Home from './home';

export default Home;

re-export-default-in-es-6-modules


module redirect


see if there is a default ?


this is the ES6 module import and export syntax. For more information, please take a look at Ruan Yifeng's document on es6 http://es6.ruanyifeng.com/-sharpdo.

.
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-1b22457-2b5fa.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-1b22457-2b5fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?