Skip to content

Instantly share code, notes, and snippets.

View dev-yohan's full-sized avatar
🎯
Focusing

yohan morales dev-yohan

🎯
Focusing
  • Madrid, Spain
View GitHub Profile
@cereallarceny
cereallarceny / index.js
Created October 12, 2017 20:37
Server-side rendering with create-react-app (Fiber), React Router v4, Helmet, Redux, and Thunk
// Ignore those pesky styles
require('ignore-styles');
// Set up babel to do its thing... env for the latest toys, react-app for CRA
require('babel-register')({
ignore: /\/(build|node_modules)\//,
presets: ['env', 'react-app']
});
// Now that the nonsense is over... load up the server entry point