Skip to content

Instantly share code, notes, and snippets.

@nitish24p nitish24p/server.js
Created Jan 18, 2018

Embed
What would you like to do?
Code split react loadable
/// 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
You can’t perform that action at this time.