flipace/react-themeit

refs can't be set on stateless components

Open

#9 ouverte le 9 nov. 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (2 assignés)JavaScript (2 forks)github user discovery
bugenhancementhelp wanted

Métriques du dépôt

Stars
 (28 stars)
Métriques de merge PR
 (Métriques PR en attente)

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