flipace / flipace/react-themeit

refs can't be set on stateless components

Open
#9 0 comments 0 reactions 2 assignees Claimed by @visuallization View on GitHub
bug enhancement help wanted
Dominant language
JavaScript
Stars
27
Forks
2
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.