Last active
June 20, 2018 15:29
-
-
Save wintorez/c3bba505ab097c4166f9f2450573df34 to your computer and use it in GitHub Desktop.
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 memoize from 'lodash/memoize'; | |
const Heading = memoize((props) => ( | |
<div className="heading"> | |
<div className="App-header"> | |
<h2>{props.title}</h2> | |
</div> | |
</div> | |
), (props) => { | |
return props.title; | |
}); | |
export default Heading; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment