flipace/react-themeit

refs can't be set on stateless components

Aberta

#9 aberto em 9 de nov. de 2017

 (0 comentário) (0 reação) (2 responsáveis)JavaScript (2 forks)github user discovery
bugenhancementhelp wanted

Métricas do repositório

Stars
 (28 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador