Skip to content

Instantly share code, notes, and snippets.

@wintorez
Last active June 20, 2018 15:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wintorez/c3bba505ab097c4166f9f2450573df34 to your computer and use it in GitHub Desktop.
Save wintorez/c3bba505ab097c4166f9f2450573df34 to your computer and use it in GitHub Desktop.
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