Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
React has to be imported in index file 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
jukben committed Apr 9, 2019
1 parent 2110812 commit 11009e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const FILE_BANNER = `/**
`;

const INDEX_EXTRA_CONTENT = `export type IconComponent = React.SFC<{ className?: string }>;
const INDEX_EXTRA_CONTENT = `import * as React from 'react';
export type IconComponent = React.SFC<{ className?: string }>;
`;

Expand Down

0 comments on commit 11009e3

Please sign in to comment.