flipace/react-themeit

refs can't be set on stateless components

Open

#9 aperta il 9 nov 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (2 assegnatari)JavaScript (2 fork)github user discovery
bugenhancementhelp wanted

Metriche repository

Star
 (28 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor