Every line of 'export default react' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
30 export () { 31 return { 32 name: this.name, 33 endpoints: this.endpoints.map(e => e.export()), 34 onUpdate: this.onUpdate, 35 onDelete: this.onDelete, 36 }; 37 }
7 export function FuncExportNamed(props: Props) { 8 return null; 9 }
953 value: function _export() { 954 return { 955 value: this.data.value, 956 text: this.data.text, 957 hidden: this.data.hidden 958 }; 959 }
47 public export(): ServerApplicationImportProps { 48 return this.props; 49 }
88 export function HandleExportReferences(props: ExportReferenceProps, scope: IExportReferences) { 89 const { node } = props.visit; 90 for (const specifier of node.specifiers) { 91 if (specifier.local.name && specifier.exported.name) { 92 scope.references.push( 93 ExportReference({ 94 scope, 95 name: specifier.exported.name, 96 local: specifier.local.name, 97 visit: props.visit, 98 type: ExportReferenceType.LOCAL_REFERENCE, 99 }), 100 ); 101 } 102 } 103 }
5 export default function exportTestDefault() { 6 return gettext('Hi from an ES6 export default!'); 7 }
58 quickExport() { 59 const builder = new Builder(false, true) 60 const html = new Blob([builder.build()], { type: 'text/html;charset=utf-8' }) 61 const filename = `${this.props.export.name}.html` 62 saveAs(html, filename) 63 toast.success(`Project exported as ${filename} without optimizations. Do not use in production.`) 64 }