flipace/react-themeit

refs can't be set on stateless components

Open

#9 aberto em 9 de nov. de 2017

Ver no GitHub
 (0 comments) (0 reactions) (2 assignees)JavaScript (2 forks)github user discovery
bugenhancementhelp wanted

Métricas do repositório

Stars
 (28 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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