Logged extends Component { render() { console.log(msg); return <Comp {...this.props} /> } }; } Quick Aside: Decorators • “Higher-order components” • Function that takes in a component and returns a new (wrapped) component • babel-plugin-transform-decorators-legacy • Can be used via “currying” style @logOnRender('Oh hai!') class Home extends Component { ... }