flipace/react-themeit

refs can't be set on stateless components

Open

#9 opened on Nov 9, 2017

 (0 comments) (0 reactions) (2 assignees)JavaScript (2 forks)github user discovery
bugenhancementhelp wanted

Repository metrics

Stars
 (28 stars)
PR merge metrics
 (No merged PRs in 30d)

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.

Contributor guide