flipace/react-themeit

refs can't be set on stateless components

Ouverte

#9 ouverte le 9 nov. 2017

 (0 commentaire) (0 réaction) (2 personnes assignées)JavaScript (2 forks)github user discovery
bugenhancementhelp wanted

Métriques du dépôt

Stars
 (28 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur