flipace/react-themeit

refs can't be set on stateless components

开放

#9 创建于 2017年11月9日

 (0 条评论) (0 个反应) (2 位负责人)JavaScript (2 个派生)github user discovery
bugenhancementhelp wanted

仓库指标

星标
 (28 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南