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
Show hidden characters
{ | |
"plugins": [ | |
[ | |
"module-resolver", | |
{ | |
"extensions": [ | |
".js" | |
], | |
"root": [ | |
"." |
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
import Koa from 'koa'; | |
import logger from 'koa-logger'; | |
import koaSend from 'koa-send'; | |
import App from 'app/shell/server/App'; | |
function staticMiddleware() { | |
return async function staticMiddlewareHandler(ctx, next) { | |
try { | |
if (ctx.path !== '/') { | |
return await koaSend( |
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
// Children component, handleClick in props | |
const BodyOverlay = ({ handleClick }) => ( | |
<div className="body_overlay" onClick={handleClick} /> | |
); | |
// propType checking | |
BodyOverlay.propTypes = { | |
handleClick: PropTypes.func.isRequired | |
}; |
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
import React from 'react'; | |
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; | |
const Hero = () => ( | |
<div className="hero"> | |
<ReactCSSTransitionGroup | |
component="div" | |
className="hero_text" | |
transitionName="is-loaded" | |
transitionEnterTimeout={300} |