flipace/react-themeit

refs can't be set on stateless components

Open

#9 geöffnet am 9. Nov. 2017

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (2 zugewiesene Personen)JavaScript (2 Forks)github user discovery
bugenhancementhelp wanted

Repository-Metriken

Stars
 (28 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide