Skip to content

Commit

Permalink
Use React.memo is available (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
merisbahti authored and levrik committed May 13, 2019
1 parent f00dd0d commit 57dacc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-react.js
Expand Up @@ -12,7 +12,7 @@ const ${component.name} = ({ color = 'currentColor', size = 24, children, ...pro
);
};
export default ${component.name};
export default React.memo ? React.memo(${component.name}) : ${component.name};
`, component => `import { MdiReactIconComponentType } from './dist/typings';
declare const ${component.name}: MdiReactIconComponentType;
Expand Down

0 comments on commit 57dacc7

Please sign in to comment.