flipace/react-themeit

refs can't be set on stateless components

オープン

#9 opened on 2017/11/09

 (0 件のコメント) (0 件のリアクション) (2 人の担当者)JavaScript (2 件のフォーク)github user discovery
bugenhancementhelp wanted

Repository metrics

Stars
 (28 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

When using themeit with react 16 on a stateless component react will log an error about stateless components not supporting refs (ofc). Themeit should check the component type before adding the ref prop.

コントリビューターガイド