flipace / flipace/react-themeit

refs can't be set on stateless components

Aperta
#9 0 commenti 0 reazioni 2 assegnatari Rivendicata da @visuallization Vedi su GitHub
bug enhancement help wanted
Lingua principale
JavaScript
Stelle
27
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.