Export and import in ES6 post we will learn about the usage of import and export in react. “export” is used export functions, objects, or primitive values from the module the export statement cannot be used in embedded scripts.