Created
December 19, 2018 16:06
-
-
Save ofirdagan/cd6eb328e9a9d16edd4daab42af47b13 to your computer and use it in GitHub Desktop.
Lazy Require Vs Imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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