flipace/react-themeit

refs can't be set on stateless components

Open

#9 opened on 2017年11月9日

GitHub で見る
 (0 comments) (0 reactions) (2 assignees)JavaScript (2 forks)github user discovery
bugenhancementhelp wanted

Repository metrics

Stars
 (28 stars)
PR merge metrics
 (PR metrics pending)

説明

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.

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