From 11009e3bc827b173cc82020f0e6d5dad61c23add Mon Sep 17 00:00:00 2001 From: Jakub Benes Date: Tue, 9 Apr 2019 15:04:05 +0200 Subject: [PATCH] =?UTF-8?q?React=20has=20to=20be=20imported=20in=20index?= =?UTF-8?q?=20file=20=F0=9F=A4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index d3a8f5b..a72db3e 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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 }>; `;