Created
January 18, 2018 09:31
-
-
Save nitish24p/2be7e95d0b21651bf95f5c463c399748 to your computer and use it in GitHub Desktop.
Code split react loadable
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
/// Somewhere on your express server | |
import Loadable from 'react-loadable'; | |
Loadable.preloadAll().then(() => { | |
server.listen(port, function () { | |
console.log('Express server listening on port ' + server.address().port); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment