Skip to content

Instantly share code, notes, and snippets.

@ofirdagan
Created December 19, 2018 16:06
Show Gist options
  • Save ofirdagan/cd6eb328e9a9d16edd4daab42af47b13 to your computer and use it in GitHub Desktop.
Save ofirdagan/cd6eb328e9a9d16edd4daab42af47b13 to your computer and use it in GitHub Desktop.
Lazy Require Vs Imports
ModuleRegistry.registerComponent('MyComp', () => {
const MyComp = require('./MyComp');
reutrn MyComp;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment